ReFix Coverity Scan CID 300459 (Using uninitialized value addr. Field addr.sin_zero is uninitialized when calling bind.)
This commit is contained in:
@@ -53,7 +53,6 @@ socket_link_t *new_link_server(int port)
|
||||
int no_delay;
|
||||
|
||||
|
||||
memset(&addr,0,sizeof(struct sockaddr_in));
|
||||
ret = calloc(1, sizeof(socket_link_t));
|
||||
if (ret == NULL) {
|
||||
LOG_E(MAC, "%s:%d: out of memory\n", __FILE__, __LINE__);
|
||||
|
||||
Reference in New Issue
Block a user