.pkt file was not closed when header is bad
This commit is contained in:
parent
b0c43af5ff
commit
5b7e741b4b
@ -287,6 +287,7 @@ int TossPkt(char *fn)
|
|||||||
(rc == 3)?"packet is not for us":
|
(rc == 3)?"packet is not for us":
|
||||||
(rc == 4)?"bad password":
|
(rc == 4)?"bad password":
|
||||||
"bad packet");
|
"bad packet");
|
||||||
|
fclose(pkt);
|
||||||
return(rc);
|
return(rc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user