2012-04-22 04:21:26 +02:00
|
|
|
--- fix_options.c.orig
|
2006-12-19 00:17:59 +01:00
|
|
|
+++ fix_options.c
|
2012-04-22 04:21:26 +02:00
|
|
|
@@ -53,7 +53,7 @@ struct request_info *request;
|
2006-12-19 00:17:59 +01:00
|
|
|
* XXX IPv6 support?
|
|
|
|
*/
|
|
|
|
sslen = sizeof(ss);
|
|
|
|
- if (getsockname(fd, (struct sockaddr *)&ss, &sslen < 0)) {
|
|
|
|
+ if (getsockname(fd, (struct sockaddr *)&ss, &sslen) < 0) {
|
|
|
|
syslog(LOG_ERR, "getpeername: %m");
|
|
|
|
clean_exit(request);
|
|
|
|
}
|