Fix Coverity Scan CID 340288
This commit is contained in:
@@ -228,7 +228,7 @@ socket_link_t *new_link_udp_client(const char *server, int port){
|
|||||||
|
|
||||||
struct sockaddr_in si_other;
|
struct sockaddr_in si_other;
|
||||||
int s;
|
int s;
|
||||||
socklen_t slen;
|
socklen_t slen = 0;
|
||||||
|
|
||||||
if ( (s=socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)) == -1){
|
if ( (s=socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)) == -1){
|
||||||
goto error;
|
goto error;
|
||||||
|
|||||||
Reference in New Issue
Block a user