Avoid duplicate 200 OK

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4809 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.2-netsec
Mark Spencer 21 years ago
parent b0772febde
commit 0b4862c822

@ -8002,13 +8002,14 @@ static int handle_request(struct sip_pvt *p, struct sip_request *req, struct soc
found++;
}
if (found)
if (found){
transmit_response(p, "200 OK", req);
else {
ast_set_flag(p, SIP_NEEDDESTROY);
} else {
transmit_response(p, "403 Forbidden", req);
ast_set_flag(p, SIP_NEEDDESTROY);
}
return 0;
} else
p->subscribed = 1;
if (p->subscribed)

Loading…
Cancel
Save