diff options
author | Benny Prijono <bennylp@teluu.com> | 2008-09-24 09:51:51 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2008-09-24 09:51:51 +0000 |
commit | 8fa5079ad7ee39493cd3231de2030335ad56eccc (patch) | |
tree | 68cea3a3ba90986c4de23696338d21607849fcbb /pjsip | |
parent | f4ad539fd9eb9affef10c308bb30a80c0cb438c4 (diff) |
Fixed bug in pjsip_auth_clt_clone(), the cached_auth list is not initialized in the copy
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2314 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip')
-rw-r--r-- | pjsip/src/pjsip/sip_auth_client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pjsip/src/pjsip/sip_auth_client.c b/pjsip/src/pjsip/sip_auth_client.c index 5ce5cdca..740653eb 100644 --- a/pjsip/src/pjsip/sip_auth_client.c +++ b/pjsip/src/pjsip/sip_auth_client.c @@ -441,8 +441,8 @@ PJ_DEF(pj_status_t) pjsip_auth_clt_clone( pj_pool_t *pool, PJ_ASSERT_RETURN(pool && sess && rhs, PJ_EINVAL); - sess->pool = pool; - sess->endpt = (pjsip_endpoint*)rhs->endpt; + pjsip_auth_clt_init(sess, (pjsip_endpoint*)rhs->endpt, pool, 0); + sess->cred_cnt = rhs->cred_cnt; sess->cred_info = (pjsip_cred_info*) pj_pool_alloc(pool, |