From 1d6013fce47e3c6ba030e662d35f3505d8183d68 Mon Sep 17 00:00:00 2001 From: "Joseph C. Lehner" Date: Mon, 21 Nov 2016 21:24:53 +0100 Subject: [PATCH] Fix uninitialized file descriptor --- tftp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tftp.c b/tftp.c index a291ac0..0b25a9e 100644 --- a/tftp.c +++ b/tftp.c @@ -238,6 +238,7 @@ int tftp_put(struct nmrpd_args *args) sock = -1; ret = -1; + fd = -1; if (g_interrupted) { goto cleanup;