Skip to content

Commit

Permalink
seas: initialize bind structure
Browse files Browse the repository at this point in the history
Fixes Coverity CID 40916
  • Loading branch information
razvancrainea committed Oct 24, 2016
1 parent b10cc36 commit 13631c2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/seas/statistics.c
Expand Up @@ -252,6 +252,7 @@ int start_stats_server(char *stats_socket)
LM_ERR("setsockopt (%s)\n",strerror(errno));
goto error;
}
memset(&su, 0, sizeof(su));
su.sin_family = he->h_addrtype;
su.sin_port=htons(stats_port);
memcpy(&su.sin_addr,he->h_addr_list[0],4);
Expand Down

0 comments on commit 13631c2

Please sign in to comment.