dect
/
asterisk
Archived
13
0
Fork 0

Initialize secrets properly (bug #1748)

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3108 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
markster 2004-05-29 23:40:22 +00:00
parent 10938d0ca1
commit 125c90939e
1 changed files with 2 additions and 0 deletions

View File

@ -4837,6 +4837,8 @@ static int check_user(struct sip_pvt *p, struct sip_request *req, char *cmd, cha
ast_log(LOG_DEBUG, "Setting NAT on VRTP to %d\n", p->nat);
ast_rtp_setnat(p->vrtp, p->nat);
}
strcpy(p->peersecret, peer->secret);
strcpy(p->peermd5secret, peer->md5secret);
if (peer->insecure > 1) {
/* Pretend there is no required authentication if insecure is "very" */
strcpy(p->peersecret, "");