mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-26 00:55:14 +00:00
Fix double fclose() when local file exists in receive_file().
Submitted by: Andy Xie (andy.xie.sz@gmail.com) Approved by: delphij (maintainer, implicit) Feature safe: yes
This commit is contained in:
parent
fb76273875
commit
14dd95e6f7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=316222
@ -26,7 +26,15 @@
|
||||
}
|
||||
|
||||
sscanf(rx_data_subpacket + strlen(rx_data_subpacket) + 1,
|
||||
@@ -342,7 +343,7 @@
|
||||
@@ -243,6 +244,7 @@
|
||||
fstat(fileno(fp),&s);
|
||||
|
||||
fclose(fp);
|
||||
+ fp = NULL;
|
||||
}
|
||||
else {
|
||||
exists = FALSE;
|
||||
@@ -342,7 +344,7 @@
|
||||
*/
|
||||
|
||||
if (opt_v) {
|
||||
@ -35,7 +43,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
@@ -386,8 +387,6 @@
|
||||
@@ -386,8 +388,6 @@
|
||||
printf(" -q quiet\n");
|
||||
printf(" (only one of -n -c or -p may be specified)\n");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user