subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhuij...@apache.org
Subject svn commit: r1654210 - /subversion/trunk/subversion/libsvn_ra_serf/util.c
Date Fri, 23 Jan 2015 13:42:40 GMT
Author: rhuijben
Date: Fri Jan 23 13:42:40 2015
New Revision: 1654210

URL: http://svn.apache.org/r1654210
Log:
Resolve an segfault during error triggered after ^C in my debugging session.

* subversion/libsvn_ra_serf/util.c
  (handler_cleanup): Don't segfault when a member is NULL.

Modified:
    subversion/trunk/subversion/libsvn_ra_serf/util.c

Modified: subversion/trunk/subversion/libsvn_ra_serf/util.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_ra_serf/util.c?rev=1654210&r1=1654209&r2=1654210&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_ra_serf/util.c (original)
+++ subversion/trunk/subversion/libsvn_ra_serf/util.c Fri Jan 23 13:42:40 2015
@@ -1877,7 +1877,7 @@ static apr_status_t
 handler_cleanup(void *baton)
 {
   svn_ra_serf__handler_t *handler = baton;
-  if (handler->scheduled && handler->conn)
+  if (handler->scheduled && handler->conn && handler->conn->conn)
     {
       serf_connection_reset(handler->conn->conn);
     }



Mime
View raw message