diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-04-30 20:17:20 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-04-30 20:17:20 +0000 |
commit | f5d3f160eae4564f43911b5336d39020c1987f9c (patch) | |
tree | 4c7836c3fdb459aae494acd57e5dff9a8483f428 /channels | |
parent | 25bac0907fd55d2b6c0ef47c0fe71d39225ed382 (diff) |
Make 1.6.0 compile
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@114908 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 65dd4bd44..5f2a426d2 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -18074,8 +18074,8 @@ static int handle_request_do(struct sip_request *req, struct sockaddr_in *sin) ntohs(sin->sin_port), req->data); } - if(parse_request(req) == -1) { /* Bad packet, can't parse */ - ast_str_reset(req->data); /* nulling this out is NOT a good idea here. */ + if (parse_request(req) == -1) { /* Bad packet, can't parse */ + req->data[0] = '\0'; /* nulling this out is NOT a good idea here. */ return 1; } |