From: Ben Laurie Date: Sat, 11 Sep 1999 22:14:11 +0000 (+0000) Subject: Use return status instead of character value for EOF. X-Git-Tag: 1.3.10~329 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e2efaf8ab877a326f21186d046f721af1cf55fc;p=thirdparty%2Fapache%2Fhttpd.git Use return status instead of character value for EOF. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83893 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/mappers/mod_negotiation.c b/modules/mappers/mod_negotiation.c index 47e0319db2e..840a9d6fb01 100644 --- a/modules/mappers/mod_negotiation.c +++ b/modules/mappers/mod_negotiation.c @@ -678,8 +678,9 @@ static enum header_state get_header_line(char *buffer, int len, ap_file_t *map) * so that we will pick up the blank line the next time 'round. */ - while (c != EOF && c != '\n' && ap_isspace(c)) { - ap_getc(map, &c); + while (c != '\n' && ap_isspace(c)) { + if(ap_getc(map, &c) != APR_SUCCESS) + break; } ap_ungetc(map, c);