diff options
author | yasuoka <yasuoka@openbsd.org> | 2014-04-03 07:10:18 +0000 |
---|---|---|
committer | yasuoka <yasuoka@openbsd.org> | 2014-04-03 07:10:18 +0000 |
commit | 7fb6cf47a07868746629e6d664674bea331ccec9 (patch) | |
tree | ecd0c411f3baedf72b467d7c6f8084ed9b3cfa45 /usr.sbin/npppctl | |
parent | document some non-portable env vars in STANDARDS; (diff) | |
download | wireguard-openbsd-7fb6cf47a07868746629e6d664674bea331ccec9.tar.xz wireguard-openbsd-7fb6cf47a07868746629e6d664674bea331ccec9.zip |
calucuation of response message size was wrong.
Diffstat (limited to 'usr.sbin/npppctl')
-rw-r--r-- | usr.sbin/npppctl/npppctl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/npppctl/npppctl.c b/usr.sbin/npppctl/npppctl.c index b58c080d565..27d0489b641 100644 --- a/usr.sbin/npppctl/npppctl.c +++ b/usr.sbin/npppctl/npppctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: npppctl.c,v 1.2 2014/03/22 04:30:31 yasuoka Exp $ */ +/* $OpenBSD: npppctl.c,v 1.3 2014/04/03 07:10:18 yasuoka Exp $ */ /* * Copyright (c) 2012 Internet Initiative Japan Inc. @@ -155,8 +155,8 @@ show_clear_session(struct parse_result *result, FILE *out) res = (struct npppd_who_list *)ctl_imsg.data; if (ctl_imsg.hdr.len - IMSG_HEADER_SIZE < offsetof(struct npppd_who_list, - entry[res->entry_count + 1])) { - err(1, "response size %d is too small for " + entry[res->entry_count])) { + errx(1, "response size %d is too small for " "the entry count %d", (int)(ctl_imsg.hdr.len - IMSG_HEADER_SIZE), res->entry_count); |