Commit Diff
- Commit:
98c8f038acfbcb3f9366c9e22e5d75255187afeb
- From:
- Omar Polo <op@omarpolo.com>
- Date:
- Message:
- drop inet_ntop leftovers we switched to getnameinfo some time ago, but that call to inet_ntop remained. Fortunately, it doesn't harm, since what i wrote is overwritten by getnameinfo and the provided buffer should be large enough.
- Actions:
- Patch | Tree
--- cgi.c +++ cgi.c @@ -96,9 +96,6 @@ start_cgi(const char *spath, const char *relpath, cons if (dup2(p[1], 1) == -1) goto childerr; - if (inet_ntop(c->af, &c->addr, addr, sizeof(addr)) == NULL) - goto childerr; - ec = getnameinfo((struct sockaddr*)&c->addr, sizeof(c->addr), addr, sizeof(addr), NULL, 0,