Browse Source

update code

Nick Peng 7 years ago
parent
commit
2ecadcde6d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      dns_server.c

+ 1 - 1
dns_server.c

@@ -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;
     }