mirror of
https://github.com/troglobit/finit.git
synced 2026-11-30 21:18:22 +00:00
Merge pull request #73 from westermo/wmo/inetd-remove-ntoh-on-proto
inetd: remove ntoh on proto
This commit is contained in:
commit
5f5be8d74e
1 file changed
+1
-1
+1
-1
@@ -573,7 +573,7 @@ int inetd_match(inetd_t *inetd, char *service, char *proto)
|
|||||||
if (getent(service, proto, &sv, &pv))
|
if (getent(service, proto, &sv, &pv))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (inetd->proto == ntohs(pv->p_proto) &&
|
if (inetd->proto == pv->p_proto &&
|
||||||
inetd->port == ntohs(sv->s_port))
|
inetd->port == ntohs(sv->s_port))
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user