From bef2e7f2ff93902a34d999e1ede75ba4f9aabcd0 Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Thu, 18 Oct 2007 01:04:57 +0000 Subject: [PATCH] Avoid a NULL pointer dereference in an OOM condition. --- lib/url.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);