Commit b4269d61 authored by Mike Hibler's avatar Mike Hibler
Browse files

Minor logic nit.

parent 793d44d7
......@@ -682,19 +682,17 @@ ClientNetFindServer(in_addr_t sip, in_port_t sport,
close(msock);
return 0;
}
close(msock);
if (strncmp((char *)msg.hdr.version, MS_MSGVERS_1,
sizeof(msg.hdr.version))) {
fprintf(stderr, "Got incorrect version from master server\n");
close(msock);
return 0;
}
if (ntohl(msg.hdr.type) != MS_MSGTYPE_GETREPLY) {
fprintf(stderr, "Got incorrect reply from master server\n");
close(msock);
return 0;
}
close(msock);
/*
* Convert the reply info to host order
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment