* Bug fix: That should be IMHO there.
authorBernd Petrovitsch <bernd@firmix.at>
Sun, 9 Nov 2008 17:31:59 +0000 (18:31 +0100)
committerBernd Petrovitsch <bernd@firmix.at>
Sun, 9 Nov 2008 17:31:59 +0000 (18:31 +0100)
lib/httpinfo/src/olsrd_httpinfo.c

index 8ae0e52..d679a84 100644 (file)
@@ -353,7 +353,7 @@ parse_http_request(int fd, void *data __attribute__((unused)), unsigned int flag
     struct ipaddr_str strbuf;
     olsr_printf(0, "HTTP request from non-allowed host %s!\n",
                 olsr_ip_to_string(&strbuf, (union olsr_ip_addr *)&pin.sin_addr.s_addr));
-    close(client_sockets[curr_clients]);
+    goto close_connection;
   }
 
   addr = inet_ntoa(pin.sin_addr);