From f5d3f160eae4564f43911b5336d39020c1987f9c Mon Sep 17 00:00:00 2001 From: mmichelson Date: Wed, 30 Apr 2008 20:17:20 +0000 Subject: Make 1.6.0 compile git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@114908 f38db490-d61c-443f-a65b-d21fe96a405b --- channels/chan_sip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'channels') 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; } -- cgit v1.2.3