aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_sip.c
diff options
context:
space:
mode:
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r--channels/chan_sip.c4
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;
}