Fix stack overflow
authorJoseph C. Lehner <joseph.c.lehner@gmail.com>
Thu, 18 Feb 2016 18:30:31 +0000 (19:30 +0100)
committerJoseph C. Lehner <joseph.c.lehner@gmail.com>
Thu, 18 Feb 2016 18:30:31 +0000 (19:30 +0100)
tftp.c

diff --git a/tftp.c b/tftp.c
index 282f6d2d07342834e0cc3d0603ada46a322e61ec..da76dc97158e75947ab2e9e23d3a9cc1862dcd62 100644 (file)
--- a/tftp.c
+++ b/tftp.c
@@ -216,11 +216,6 @@ void sock_perror(const char *msg)
 {
        win_perror2(msg, WSAGetLastError());
 }
-#else
-inline void sock_perror(const char *msg)
-{
-       perror(msg);
-}
 #endif
 
 inline bool tftp_is_valid_filename(const char *filename)