diff options
author | guenther <guenther@openbsd.org> | 2018-11-04 05:56:45 +0000 |
---|---|---|
committer | guenther <guenther@openbsd.org> | 2018-11-04 05:56:45 +0000 |
commit | 74875158c0c8e6f8df33e08838d36f95607f057a (patch) | |
tree | d8594edf86d5670de1fcdf8743b3f5625d63806c /usr.sbin/httpd | |
parent | lstmatch() expects a list of strings separated by \0 and terminated (diff) | |
download | wireguard-openbsd-74875158c0c8e6f8df33e08838d36f95607f057a.tar.xz wireguard-openbsd-74875158c0c8e6f8df33e08838d36f95607f057a.zip |
isalpha(3) requires an unsigned char value (or -1).
from Hiltjo Posthuma (hiltjo(at)codemadness.org)
Diffstat (limited to 'usr.sbin/httpd')
-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; |