update code

This commit is contained in:
Nick Peng
2018-05-05 15:36:48 +08:00
parent 210fabe4b3
commit 2ecadcde6d

View File

@@ -144,7 +144,7 @@ int dns_server_socket(void)
goto errout;
}
if (bind() != 0) {
if (bind(fd, ) != 0) {
fprintf(stderr, "bind failed.\n");
goto errout;
}