diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2013-11-21 03:09:08 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2013-11-21 03:09:08 +0000 |
commit | ddd27542a2d42f7e119c2e4e6677bd0cf92f862f (patch) | |
tree | 11f63cbae362bb7f53472bbcbd419b48f4e12f3a /usr.sbin | |
parent | 0d5879a3f87dcbf5503a9bab265ffb6b903e43ff (diff) |
get bytes off the wire as unsigned char so we can pass them to
identd_parse() and then isspace()/isdigit() as appropriately promoted
values.
based on discussion with deraadt@ and guenther@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/identd/identd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/identd/identd.c b/usr.sbin/identd/identd.c index 581aef70654..0cfef24baa6 100644 --- a/usr.sbin/identd/identd.c +++ b/usr.sbin/identd/identd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: identd.c,v 1.22 2013/11/12 19:47:52 deraadt Exp $ */ +/* $OpenBSD: identd.c,v 1.23 2013/11/21 03:09:07 dlg Exp $ */ /* * Copyright (c) 2013 David Gwynne <dlg@openbsd.org> @@ -745,7 +745,7 @@ void identd_request(int fd, short events, void *arg) { struct ident_client *c = arg; - char buf[64]; + unsigned char buf[64]; ssize_t n, i; char *errstr = unknown_err ? "UNKNOWN-ERROR" : "INVALID-PORT"; |