Skip to content

Commit a29961b

Browse files
committed
Fix the double free and NULL derefs in the custom io cleanup paths
1 parent e1d9831 commit a29961b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

custom-io-callbacks/file-server/file-server.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ int main(int argc, char** argv)
186186
// sslServ = Server(&ctxServ, "ECDHE-RSA-AES128-SHA", 1);
187187
sslServ = Server(&ctxServ, "let-wolfssl-choose", 0);
188188

189-
if (sslServ == NULL) { printf("sslServ NULL\n"); return -1;}
189+
if (sslServ == NULL) { printf("sslServ NULL\n"); goto cleanup; }
190190
ret = SSL_FAILURE;
191191
printf("Starting server\n");
192192
while (ret != SSL_SUCCESS) {

0 commit comments

Comments
 (0)