mirror of
https://github.com/curl/curl.git
synced 2026-07-23 16:07:16 +03:00
conncache.c: fix possible dereference of null pointer
This commit is contained in:
parent
c216179af4
commit
8fc4abedf1
1 changed files with 6 additions and 3 deletions
|
|
@ -166,10 +166,13 @@ void Curl_conncache_remove_conn(struct conncache *connc,
|
|||
if(bundle->num_connections == 0) {
|
||||
conncache_remove_bundle(connc, bundle);
|
||||
}
|
||||
connc->num_connections--;
|
||||
|
||||
DEBUGF(infof(conn->data, "The cache now contains %d members\n",
|
||||
connc->num_connections));
|
||||
if(connc) {
|
||||
connc->num_connections--;
|
||||
|
||||
DEBUGF(infof(conn->data, "The cache now contains %d members\n",
|
||||
connc->num_connections));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue