About time I wrote up the data structure used in agedu, since it's
[sgt/agedu] / httpd.c
diff --git a/httpd.c b/httpd.c
index 62c1ceb..e5ee270 100644 (file)
--- a/httpd.c
+++ b/httpd.c
@@ -430,6 +430,7 @@ void run_httpd(const void *t, int authmask, const struct httpd_config *dcfg,
        fprintf(stderr, "socket(PF_INET): %s\n", strerror(errno));
        exit(1);
     }
+    memset(&addr, 0, sizeof(addr));
     addr.sin_family = AF_INET;
     if (!dcfg->address) {
 #ifdef RANDOM_LOCALHOST