]> granicus.if.org Git - apache/commit
getline() fixes...
authorJeff Trawick <trawick@apache.org>
Fri, 13 Oct 2000 17:54:24 +0000 (17:54 +0000)
committerJeff Trawick <trawick@apache.org>
Fri, 13 Oct 2000 17:54:24 +0000 (17:54 +0000)
commitee1ba0a23fabf87e7e2e7e60f90651cb032c7157
treeb65afdfce4e24821e093fdcda32a91e81d254132
parentf5ab7f6f10f5e5328d24992132bf41cad3939f16
getline() fixes...

If ap_get_brigade() returns APR_SUCCESS but an empty brigade, bail out.
Previously, we kept going and sometimes segfaulted while operating on
what we thought was the first bucket.

Free the temporary brigade used by getline().

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86581 13f79535-47bb-0310-9956-ffa450edef68
modules/http/http_protocol.c