Removed unreachable code.
[BearSSL] / tools / server.c
index fc16692..89d529b 100644 (file)
@@ -35,7 +35,6 @@
 #include <arpa/inet.h>
 #include <unistd.h>
 #include <fcntl.h>
 #include <arpa/inet.h>
 #include <unistd.h>
 #include <fcntl.h>
-#include <sys/poll.h>
 
 #include "brssl.h"
 #include "bearssl.h"
 
 #include "brssl.h"
 #include "bearssl.h"
@@ -1037,9 +1036,7 @@ server_exit:
                }
                xfree(chain);
        }
                }
                xfree(chain);
        }
-       if (sk != NULL) {
-               free_private_key(sk);
-       }
+       free_private_key(sk);
        xfree(iobuf);
        xfree(cache);
        if (fd >= 0) {
        xfree(iobuf);
        xfree(cache);
        if (fd >= 0) {