Make sure we shutdown SSL connections when an error occurs.

This commit is contained in:
Jan Vidar Krey 2010-01-23 00:20:48 +01:00
parent b2e7a2848f
commit c670d13369
2 changed files with 5 additions and 1 deletions

View File

@ -8,7 +8,7 @@ LD := $(CC)
MV := mv
RANLIB := ranlib
CFLAGS += -pipe -Wall
USE_SSL ?= NO
USE_SSL ?= YES
USE_BIGENDIAN ?= AUTO
BITS ?= AUTO
SILENT ?= YES

View File

@ -279,6 +279,10 @@ void net_con_callback(struct net_connection* con, int events)
con->callback(con, events, con->ptr);
break;
case tls_st_error:
con->callback(con, NET_EVENT_READ, con->ptr);
break;
case tls_st_accepting:
if (net_con_ssl_accept(con) < 0)
{