summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--nanohttp/nanohttp-client.c4
-rw-r--r--nanohttp/nanohttp-server.c4
-rw-r--r--nanohttp/nanohttp-ssl.c4
3 files changed, 7 insertions, 5 deletions
diff --git a/nanohttp/nanohttp-client.c b/nanohttp/nanohttp-client.c
index 6f7d864..c559b26 100644
--- a/nanohttp/nanohttp-client.c
+++ b/nanohttp/nanohttp-client.c
@@ -1,5 +1,5 @@
/******************************************************************
-* $Id: nanohttp-client.c,v 1.34 2006/01/18 14:53:13 mrcsys Exp $
+* $Id: nanohttp-client.c,v 1.35 2006/01/19 18:00:19 mrcsys Exp $
*
* CSOAP Project: A http client/server library in C
* Copyright (C) 2003 Ferhat Ayaz
@@ -22,7 +22,7 @@
* Email: ferhatayaz@yahoo.com
******************************************************************/
#include <nanohttp/nanohttp-client.h>
-
+#include <nanohttp/nanohttp-ssl.h>
#ifdef HAVE_CONFIG_H
#include <config.h>
diff --git a/nanohttp/nanohttp-server.c b/nanohttp/nanohttp-server.c
index 0e6832e..e9504f6 100644
--- a/nanohttp/nanohttp-server.c
+++ b/nanohttp/nanohttp-server.c
@@ -1,5 +1,5 @@
/******************************************************************
-* $Id: nanohttp-server.c,v 1.45 2006/01/18 16:28:24 mrcsys Exp $
+* $Id: nanohttp-server.c,v 1.46 2006/01/19 18:00:19 mrcsys Exp $
*
* CSOAP Project: A http client/server library in C
* Copyright (C) 2003 Ferhat Ayaz
@@ -415,6 +415,8 @@ httpd_new (hsocket_t sock)
void
httpd_free (httpd_conn_t * conn)
{
+ if(!conn)
+ return;
if (conn->out != NULL)
http_output_stream_free (conn->out);
diff --git a/nanohttp/nanohttp-ssl.c b/nanohttp/nanohttp-ssl.c
index a2cdf17..e1139ac 100644
--- a/nanohttp/nanohttp-ssl.c
+++ b/nanohttp/nanohttp-ssl.c
@@ -25,10 +25,10 @@
#ifdef HAVE_SSL
#include <sys/types.h>
-#ifndef WIN32
-#include <netinet/in.h>
#include <openssl/rand.h>
#include <openssl/err.h>
+#ifndef WIN32
+#include <netinet/in.h>
#endif
#if HAVE_INTTYPES_H
#include <inttypes.h>