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;