serf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhuij...@apache.org
Subject svn commit: r1708866 - /serf/trunk/buckets/log_wrapper_buckets.c
Date Thu, 15 Oct 2015 18:50:15 GMT
Author: rhuijben
Date: Thu Oct 15 18:50:15 2015
New Revision: 1708866

URL: http://svn.apache.org/viewvc?rev=1708866&view=rev
Log:
* buckets/log_wrapper_buckets.c
  (serf_log_wrapped_read): Don't log read data when an error occurred, as
    in that case no data was read (and the pointer is undefined).

Modified:
    serf/trunk/buckets/log_wrapper_buckets.c

Modified: serf/trunk/buckets/log_wrapper_buckets.c
URL: http://svn.apache.org/viewvc/serf/trunk/buckets/log_wrapper_buckets.c?rev=1708866&r1=1708865&r2=1708866&view=diff
==============================================================================
--- serf/trunk/buckets/log_wrapper_buckets.c (original)
+++ serf/trunk/buckets/log_wrapper_buckets.c Thu Oct 15 18:50:15 2015
@@ -112,8 +112,7 @@ serf_log_wrapped_read(serf_bucket_t *buc
     if (SERF_BUCKET_READ_ERROR(status))
         serf__log(LOGLVL_ERROR, LOGCOMP_CONN, ctx->prefix, ctx->config,
                   "Error %d while reading.\n", status);
-
-    if (*len) {
+    else if (*len) {
         serf__log(LOGLVL_DEBUG, LOGCOMP_CONN, ctx->prefix, ctx->config,
                   "--- %d bytes. --\n", *len);
         serf__log(LOGLVL_DEBUG, LOGCOMP_RAWMSG, ctx->prefix, ctx->config,



Mime
View raw message