Skip to content

Commit 878d6e2

Browse files
committed
lib-http: http-server-connnection - Make http_server_connection_close() NULL no-op
1 parent 702d081 commit 878d6e2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib-http/http-server-connection.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1134,6 +1134,8 @@ void http_server_connection_close(struct http_server_connection **_conn,
11341134
const char *reason)
11351135
{
11361136
struct http_server_connection *conn = *_conn;
1137+
if (conn == NULL)
1138+
return;
11371139

11381140
http_server_connection_disconnect(conn, reason);
11391141
http_server_connection_unref(_conn);

0 commit comments

Comments
 (0)