mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-21 14:47:03 +01:00
dirmngr: Fix the ks_fetch command for the http scheme.
* common/http.c (http_session_ref): Allow for NULL arg. -- We always test for a an existing session and thus passing NULL as session object should be allowed. Reported-by: Jens Lechtenboerger
This commit is contained in:
parent
64329cce9a
commit
3b20cc21de
@ -636,12 +636,17 @@ http_session_new (http_session_t *r_session, const char *tls_priority)
|
||||
}
|
||||
|
||||
|
||||
/* Increment the reference count for session SESS. */
|
||||
/* Increment the reference count for session SESS. Passing NULL for
|
||||
SESS is allowed. */
|
||||
http_session_t
|
||||
http_session_ref (http_session_t sess)
|
||||
{
|
||||
sess->refcount++;
|
||||
/* log_debug ("http.c:session_ref: sess %p ref now %d\n", sess, sess->refcount); */
|
||||
if (sess)
|
||||
{
|
||||
sess->refcount++;
|
||||
/* log_debug ("http.c:session_ref: sess %p ref now %d\n", sess, */
|
||||
/* sess->refcount); */
|
||||
}
|
||||
return sess;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user