projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f30d55f
)
Initialize secrets properly (bug #1748)
author
Mark Spencer
<markster@digium.com>
Sat, 29 May 2004 23:40:22 +0000
(23:40 +0000)
committer
Mark Spencer
<markster@digium.com>
Sat, 29 May 2004 23:40:22 +0000
(23:40 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3108
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
channels/chan_sip.c
patch
|
blob
|
history
diff --git
a/channels/chan_sip.c
b/channels/chan_sip.c
index
d653361
..
bb69dc4
100755
(executable)
--- a/
channels/chan_sip.c
+++ b/
channels/chan_sip.c
@@
-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, "");