ip/tftpd: add a syslog message about what error we return to the client on a NAK
This commit is contained in:
parent
a89bee7373
commit
5fb37e15b6
1 changed files with 2 additions and 0 deletions
|
@ -737,6 +737,8 @@ nak(int fd, int code, char *msg)
|
||||||
buf[n-1] = 0;
|
buf[n-1] = 0;
|
||||||
if(write(fd, buf, n) != n)
|
if(write(fd, buf, n) != n)
|
||||||
sysfatal("write nak: %r");
|
sysfatal("write nak: %r");
|
||||||
|
|
||||||
|
syslog(dbg, flog, "tftpd %d sent NAK '%s' to %s", pid, msg, raddr);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue