Merge pull request #73 from westermo/wmo/inetd-remove-ntoh-on-proto

inetd: remove ntoh on proto
This commit is contained in:
Joachim Nilsson
2017-04-25 13:34:19 +02:00
committed by GitHub
+1 -1
View File
@@ -573,7 +573,7 @@ int inetd_match(inetd_t *inetd, char *service, char *proto)
if (getent(service, proto, &sv, &pv))
return 0;
if (inetd->proto == ntohs(pv->p_proto) &&
if (inetd->proto == pv->p_proto &&
inetd->port == ntohs(sv->s_port))
return 1;