aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2007-10-18 01:04:57 +0000
committerDan Fandrich <dan@coneharvesters.com>2007-10-18 01:04:57 +0000
commitbef2e7f2ff93902a34d999e1ede75ba4f9aabcd0 (patch)
tree7f1f5a1323bcb116749543be10986409169165bf /lib
parent8cfb0e26bb9e88027b27b8b5947b9d5a3aa5e116 (diff)
Avoid a NULL pointer dereference in an OOM condition.
Diffstat (limited to 'lib')
-rw-r--r--lib/url.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/url.c b/lib/url.c
index b0bc96a3b..373fd4534 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -2126,7 +2126,7 @@ CURLcode Curl_disconnect(struct connectdata *conn)
Curl_ntlm_cleanup(conn);
}
- if(conn->handler->disconnect)
+ if(conn->handler && conn->handler->disconnect)
/* This is set if protocol-specific cleanups should be made */
conn->handler->disconnect(conn);