diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-09-18 15:55:56 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-09-18 15:55:56 +0000 |
commit | c32a6b2b3d538843a583335bb9af3fc9a663543a (patch) | |
tree | eae34aa8d133cf1bbd367054a5142735b43a3d74 /src/gns/gnunet-gns-proxy.c | |
parent | 612390d3b0a7d3e7678ccc32c145d2653fe111df (diff) | |
download | gnunet-c32a6b2b3d538843a583335bb9af3fc9a663543a.tar.gz gnunet-c32a6b2b3d538843a583335bb9af3fc9a663543a.zip |
-fix segv
Diffstat (limited to 'src/gns/gnunet-gns-proxy.c')
-rw-r--r-- | src/gns/gnunet-gns-proxy.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gns/gnunet-gns-proxy.c b/src/gns/gnunet-gns-proxy.c index 2508ae68c..bc5499099 100644 --- a/src/gns/gnunet-gns-proxy.c +++ b/src/gns/gnunet-gns-proxy.c | |||
@@ -1866,7 +1866,8 @@ lookup_ssl_httpd (const char* domain) | |||
1866 | struct ProxyGNSCertificate *pgc; | 1866 | struct ProxyGNSCertificate *pgc; |
1867 | 1867 | ||
1868 | for (hd = mhd_httpd_head; NULL != hd; hd = hd->next) | 1868 | for (hd = mhd_httpd_head; NULL != hd; hd = hd->next) |
1869 | if (0 == strcmp (hd->domain, domain)) | 1869 | if ( (NULL != hd->domain) && |
1870 | (0 == strcmp (hd->domain, domain)) ) | ||
1870 | return hd; | 1871 | return hd; |
1871 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 1872 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
1872 | "Starting fresh MHD HTTPS instance for domain `%s'\n", | 1873 | "Starting fresh MHD HTTPS instance for domain `%s'\n", |