diff options
author | Mark Spencer <markster@digium.com> | 2003-04-05 22:33:42 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2003-04-05 22:33:42 +0000 |
commit | 7edc592778c2121b16934205ed8eaeb1981357ae (patch) | |
tree | ce0f87a1542445a3c4a2ed3c0741346c0e60fb54 /channels | |
parent | f3475fad8c7b4ba301c9fa66db0468d5d4c854d7 (diff) |
Fix a couple of non-initialization bugs
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@748 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rwxr-xr-x | channels/chan_sip.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 71f2ca692..80d103c74 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -2562,6 +2562,7 @@ static void build_route(struct sip_pvt *p, struct sip_request *req, int backward /* If this was the first then it'll be the tail */ if (!tail) tail = thishop; } else { + thishop->next = NULL; /* Link in at the end */ if (tail) tail->next = thishop; @@ -2591,6 +2592,7 @@ static void build_route(struct sip_pvt *p, struct sip_request *req, int backward thishop = (struct sip_route *)malloc(sizeof(struct sip_route)+len+1); strncpy(thishop->hop, c, len); thishop->hop[len] = '\0'; + thishop->next = NULL; /* Goes at the end */ if (tail) tail->next = thishop; |