Archived
14
0
Fork 0

Issue #6035 - Don't send 403 on bad auth (correcting one of my old mistakes...) Reported by maik.

Patch inspired by, but not the patch in the bug tracker.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8925 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
oej 2006-01-30 19:09:08 +00:00
parent 5abeb5a65f
commit 2295e2f4cb

View file

@ -6368,9 +6368,14 @@ static int check_auth(struct sip_pvt *p, struct sip_request *req, const char *us
}
if (good_response) /* Auth is OK */
return 0;
/* Ok, we have a bad username/secret pair */
/* Challenge again, and again, and again */
transmit_response_with_auth(p, response, req, p->randdata, reliable, respheader, 0);
sip_scheddestroy(p, 32000);
return 1; /* Challenge sent */
}
/* Failure */
return -1;
}
/*! \brief Callback for the devicestate notification (SUBSCRIBE) support subsystem