Explorar o código

Fix possibly uninitialized variable 'so.in_use' reported by Coverity.

Kimmo Mustonen %!s(int64=8) %!d(string=hai) anos
pai
achega
f0598c8d22
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/civetweb.c

+ 1 - 0
src/civetweb.c

@@ -14982,6 +14982,7 @@ accept_new_connection(const struct socket *listener, struct mg_context *ctx)
 
 		set_blocking_mode(so.sock, 0);
 
+		so.in_use = 0;
 		produce_socket(ctx, &so);
 	}
 }