Fix uninitialized file descriptor

This commit is contained in:
Joseph C. Lehner 2016-11-21 21:24:53 +01:00
parent fce06c4b15
commit 1d6013fce4

1
tftp.c
View file

@ -238,6 +238,7 @@ int tftp_put(struct nmrpd_args *args)
sock = -1; sock = -1;
ret = -1; ret = -1;
fd = -1;
if (g_interrupted) { if (g_interrupted) {
goto cleanup; goto cleanup;