summaryrefslogtreecommitdiff
path: root/rpmio
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2007-07-03 14:27:08 +0300
committerPanu Matilainen <pmatilai@redhat.com>2007-07-03 14:27:08 +0300
commitd7d8c35e67d3dc79acc40dc4411a2f14c584bec9 (patch)
treee0ea6b1530c001d01da4c7cfcc58cc0167d8b56d /rpmio
parent39defaa877956e0719451f37d1eee81350a163ca (diff)
downloadrpm-d7d8c35e67d3dc79acc40dc4411a2f14c584bec9.tar.gz
rpm-d7d8c35e67d3dc79acc40dc4411a2f14c584bec9.tar.bz2
rpm-d7d8c35e67d3dc79acc40dc4411a2f14c584bec9.zip
Fix segfault on errors if neon transport is used (rhbz#220392)
Patch from rpm5.org / JBJ.
Diffstat (limited to 'rpmio')
-rw-r--r--rpmio/rpmdav.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/rpmio/rpmdav.c b/rpmio/rpmdav.c
index 9db1a102c..cf08fb139 100644
--- a/rpmio/rpmdav.c
+++ b/rpmio/rpmdav.c
@@ -293,6 +293,7 @@ static int davConnect(urlinfo u)
if (_dav_debug)
fprintf(stderr, "*** Connect to %s:%d failed(%d):\n\t%s\n",
u->host, u->port, rc, ne_get_error(u->sess));
+ u = urlLink(u, __FUNCTION__); /* XXX error exit refcount adjustment */
break;
}