ports/net/xmlrpc-c/patches/patch-lib_abyss_src_http_c

22 lines
828 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Index: lib/abyss/src/http.c
--- lib/abyss/src/http.c.orig
+++ lib/abyss/src/http.c
@@ -175,7 +175,7 @@ getLineInBuffer(TConn * const connectionP,
assert(lineStart <= connectionP->buffer.t + connectionP->buffersize);
- for (*errorP = false, lfPos = NULL, timedOut = false;
+ for (*errorP = NULL, lfPos = NULL, timedOut = false;
!*errorP && !lfPos && !timedOut;
) {
int const timeLeft = (int)(deadline - time(NULL));
@@ -267,7 +267,7 @@ getRestOfField(TConn * const connectionP,
fieldEnd = lineEnd; /* initial value - end of 1st line */
- for (gotWholeField = false, timedOut = false, *errorP = false;
+ for (gotWholeField = false, timedOut = false, *errorP = NULL;
!gotWholeField && !timedOut && !*errorP;) {
char * nextLineEnd;