Wed May 13 11:00:40 CDT 2009 Pekka Pessi <first.last@nokia.com>
* auth_client.c: removed leak in auc_digest_authorization() Ignore-this: 9b0297083b6c6ce1bf9ef3d723b01f3b Coverity issue. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13337 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
4c3b2bc4b5
commit
52bcb7b396
|
@ -1 +1 @@
|
|||
Fri May 15 11:04:52 CDT 2009
|
||||
Fri May 15 11:05:48 CDT 2009
|
||||
|
|
|
@ -919,9 +919,9 @@ int auc_digest_authorization(auth_client_t *ca,
|
|||
auth_challenge_t const *ac = cda->cda_ac;
|
||||
char const *cnonce = cda->cda_cnonce;
|
||||
unsigned nc = ++cda->cda_ncount;
|
||||
char *uri = url_as_string(home, url);
|
||||
void const *data = body ? body->pl_data : "";
|
||||
usize_t dlen = body ? body->pl_len : 0;
|
||||
char *uri;
|
||||
|
||||
msg_header_t *h;
|
||||
auth_hexmd5_t sessionkey, response;
|
||||
|
@ -942,7 +942,10 @@ int auc_digest_authorization(auth_client_t *ca,
|
|||
ar->ar_qop = NULL;
|
||||
ar->ar_auth = ac->ac_auth;
|
||||
ar->ar_auth_int = ac->ac_auth_int;
|
||||
ar->ar_uri = uri;
|
||||
ar->ar_uri = uri = url_as_string(home, url);
|
||||
|
||||
if (ar->ar_uri == NULL)
|
||||
return -1;
|
||||
|
||||
/* If there is no qop, we MUST NOT include cnonce or nc */
|
||||
if (!ar->ar_auth && !ar->ar_auth_int)
|
||||
|
|
Loading…
Reference in New Issue