Author: ajcorrea
Date: Wed Feb 11 13:26:04 2009
New Revision: 13809

Modified:
    branches/LUSCA_HEAD/src/http.c

Log:


Modified: branches/LUSCA_HEAD/src/http.c
==============================================================================
--- branches/LUSCA_HEAD/src/http.c      (original)
+++ branches/LUSCA_HEAD/src/http.c      Wed Feb 11 13:26:04 2009
@@ -1230,10 +1230,12 @@
      assert(httpState->reply_hdr_state == 2);
      /* lock the httpState; it may be freed by a call to httpAppendBody */
      cbdataLock(httpState);
-    httpAppendBody(httpState, buf_buf(httpState->read_buf) + po + done,
-      buf_len(httpState->read_buf) - po - done, buffer_filled);
-    if (cbdataValid(httpState))
-       httpState->read_buf = buf_deref(httpState->read_buf);
+    if (httpState->read_buf) {
+        httpAppendBody(httpState, buf_buf(httpState->read_buf) + po + done,
+          buf_len(httpState->read_buf) - po - done, buffer_filled);
+        if (cbdataValid(httpState))
+            httpState->read_buf = buf_deref(httpState->read_buf);
+    }
      cbdataUnlock(httpState);
      /* httpState may be cleared here */


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"lusca-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/lusca-commit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to