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:
a479a03
)
fix to work with astobj stuff
author
Russell Bryant
<russell@russellbryant.com>
Sun, 26 Dec 2004 18:08:06 +0000
(18:08 +0000)
committer
Russell Bryant
<russell@russellbryant.com>
Sun, 26 Dec 2004 18:08:06 +0000
(18:08 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4557
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
5b58622
..
781584d
100755
(executable)
--- a/
channels/chan_sip.c
+++ b/
channels/chan_sip.c
@@
-8377,8
+8377,9
@@
static struct sip_user *build_user(const char *name, struct ast_variable *v)
user = (struct sip_user *)malloc(sizeof(struct sip_user));
if (user) {
- suserobjs++;
memset(user, 0, sizeof(struct sip_user));
+ suserobjs++;
+ ASTOBJ_INIT(user);
strncpy(user->name, name, sizeof(user->name)-1);
oldha = user->ha;
user->ha = NULL;
@@
-8521,8
+8522,10
@@
static struct sip_peer *temp_peer(char *name)
if (!peer)
return NULL;
- apeerobjs++;
memset(peer, 0, sizeof(struct sip_peer));
+ apeerobjs++;
+ ASTOBJ_INIT(peer);
+
peer->expire = -1;
peer->pokeexpire = -1;
strncpy(peer->name, name, sizeof(peer->name)-1);