summaryrefslogtreecommitdiffstats
path: root/nanohttp
diff options
context:
space:
mode:
authorGravatar mrcsys2006-01-10 21:45:20 +0000
committerGravatar mrcsys2006-01-10 21:45:20 +0000
commit5405c6e1daca4dea51a20765d785d94c5282ca44 (patch)
tree4379ee405994319cb8df320ce71549f68f504356 /nanohttp
parent02deda99ac0689af285e65cef13f4329f12b2498 (diff)
downloadcsoap-5405c6e1daca4dea51a20765d785d94c5282ca44.tar.gz
csoap-5405c6e1daca4dea51a20765d785d94c5282ca44.tar.bz2
A bad SSL init would cause a crash here due to an odd return
Diffstat (limited to 'nanohttp')
-rw-r--r--nanohttp/nanohttp-server.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/nanohttp/nanohttp-server.c b/nanohttp/nanohttp-server.c
index 7bce064..7df3462 100644
--- a/nanohttp/nanohttp-server.c
+++ b/nanohttp/nanohttp-server.c
@@ -1,5 +1,5 @@
/******************************************************************
-* $Id: nanohttp-server.c,v 1.40 2006/01/10 14:26:32 mrcsys Exp $
+* $Id: nanohttp-server.c,v 1.41 2006/01/10 21:45:20 mrcsys Exp $
*
* CSOAP Project: A http client/server library in C
* Copyright (C) 2003 Ferhat Ayaz
@@ -464,8 +464,7 @@ httpd_session_main (void *data)
hsocket_block (conn->sock, 0);
if (conn->sock.ssl == NULL)
{
- return herror_new ("hsocket_accept", SSL_ERROR_INIT,
- "Unable to initialize SSL");
+ done = 1;
}
}
#endif
@@ -473,7 +472,7 @@ httpd_session_main (void *data)
/* call the service */
/* req = hrequest_new_from_buffer (header);*/
- do
+ while (!done)
{
log_verbose1 ("starting HTTP request");
rconn = httpd_new (conn->sock);
@@ -543,7 +542,6 @@ httpd_session_main (void *data)
/* hrequest_free (req); */
}
}
- while (!done);
hsocket_close (conn->sock);
log_verbose1 ("Marking connection as available");