summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2013-03-15 12:36:11 +0000
committerdlg <dlg@openbsd.org>2013-03-15 12:36:11 +0000
commit75b3d082c19ad801bcc268a428364429021c34c9 (patch)
treeeb6ca4a7e5dbe5a57b6ccdbc532ff6ca5ed76e43
parentfix a huge bug in tftpd. (diff)
downloadwireguard-openbsd-75b3d082c19ad801bcc268a428364429021c34c9.tar.xz
wireguard-openbsd-75b3d082c19ad801bcc268a428364429021c34c9.zip
fix up some lwarn()s that should be lwarnx()s
-rw-r--r--usr.sbin/tftpd/tftpd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/tftpd/tftpd.c b/usr.sbin/tftpd/tftpd.c
index cf5238f406e..93e01e2e771 100644
--- a/usr.sbin/tftpd/tftpd.c
+++ b/usr.sbin/tftpd/tftpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tftpd.c,v 1.9 2013/03/15 12:20:11 dlg Exp $ */
+/* $OpenBSD: tftpd.c,v 1.10 2013/03/15 12:36:11 dlg Exp $ */
/*
* Copyright (c) 2012 David Gwynne <dlg@uq.edu.au>
@@ -1406,14 +1406,14 @@ oack(struct tftp_client *client)
n = snprintf(bp, size, "%s%c%lld", opt_names[i], '\0',
options[i].o_reply);
if (n == -1 || n >= size) {
- lwarn("oack: no buffer space");
+ lwarnx("oack: no buffer space");
goto error;
}
bp += n + 1;
size -= n + 1;
if (size < 0) {
- lwarn("oack: no buffer space");
+ lwarnx("oack: no buffer space");
goto error;
}
}