diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2007-10-18 01:04:57 +0000 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2007-10-18 01:04:57 +0000 |
commit | bef2e7f2ff93902a34d999e1ede75ba4f9aabcd0 (patch) | |
tree | 7f1f5a1323bcb116749543be10986409169165bf /lib | |
parent | 8cfb0e26bb9e88027b27b8b5947b9d5a3aa5e116 (diff) |
Avoid a NULL pointer dereference in an OOM condition.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/url.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |