Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F145317010
D21695.id62883.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
528 B
Referenced Files
None
Subscribers
None
D21695.id62883.diff
View Options
Index: head/usr.bin/tftp/main.c
===================================================================
--- head/usr.bin/tftp/main.c
+++ head/usr.bin/tftp/main.c
@@ -491,6 +491,7 @@
if (fstat(fd, &sb) < 0) {
warn("%s", cp);
+ close(fd);
return;
}
asprintf(&options[OPT_TSIZE].o_request, "%ju", sb.st_size);
@@ -746,7 +747,7 @@
exit(0);
len = MIN(MAXLINE, num);
memcpy(line, bp, len);
- line[len] = '\0';
+ line[len - 1] = '\0';
history(hist, hep, H_ENTER, bp);
} else {
line[0] = 0;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Feb 19, 8:11 AM (10 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28873983
Default Alt Text
D21695.id62883.diff (528 B)
Attached To
Mode
D21695: tftp: fix two minor Coverity CIDs
Attached
Detach File
Event Timeline
Log In to Comment