diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2018-11-04 05:56:46 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2018-11-04 05:56:46 +0000 |
commit | 5cd3b20151372f5c506cb505c11c3eeb4aabbf18 (patch) | |
tree | 0c7c2b3336dc856b40b3ff3ba505aee133707820 | |
parent | ea36c4d60e761a9818f65e38dfa3d1d32ac8f318 (diff) |
isalpha(3) requires an unsigned char value (or -1).
from Hiltjo Posthuma (hiltjo(at)codemadness.org)
-rw-r--r-- | usr.sbin/httpd/server_http.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/httpd/server_http.c b/usr.sbin/httpd/server_http.c index 1f1a03d06e2..e05cec56dfc 100644 --- a/usr.sbin/httpd/server_http.c +++ b/usr.sbin/httpd/server_http.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server_http.c,v 1.126 2018/10/15 08:16:17 bentley Exp $ */ +/* $OpenBSD: server_http.c,v 1.127 2018/11/04 05:56:45 guenther Exp $ */ /* * Copyright (c) 2006 - 2018 Reyk Floeter <reyk@openbsd.org> @@ -220,7 +220,7 @@ server_read_http(struct bufferevent *bev, void *arg) if (!clt->clt_line) { /* Peek into the buffer to see if it looks like HTTP */ key = EVBUFFER_DATA(src); - if (!isalpha(*key)) { + if (!isalpha((unsigned char)*key)) { server_abort_http(clt, 400, "invalid request line"); goto abort; |