Fix Coverity Scan CID 339948
This commit is contained in:
@@ -75,6 +75,7 @@ static int get_connection(char *addr, int port) {
|
|||||||
socklen_t alen;
|
socklen_t alen;
|
||||||
int s, t;
|
int s, t;
|
||||||
printf("T tracer: waiting for connection on %s:%d\n", addr, port);
|
printf("T tracer: waiting for connection on %s:%d\n", addr, port);
|
||||||
|
memset(&a,0,sizeof(struct sockaddr_in));
|
||||||
s = socket(AF_INET, SOCK_STREAM, 0);
|
s = socket(AF_INET, SOCK_STREAM, 0);
|
||||||
|
|
||||||
if (s == -1) {
|
if (s == -1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user