[Asterisk-cvs] asterisk/channels chan_sip.c,1.292.2.25,1.292.2.26
markster at lists.digium.com
markster at lists.digium.com
Thu Apr 1 01:36:26 CST 2004
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv13324/channels
Modified Files:
Tag: v1-0_stable
chan_sip.c
Log Message:
Use recursive locks and expand buffers in chan_sip
Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.292.2.25
retrieving revision 1.292.2.26
diff -u -d -r1.292.2.25 -r1.292.2.26
--- chan_sip.c 31 Mar 2004 08:02:08 -0000 1.292.2.25
+++ chan_sip.c 1 Apr 2004 06:35:17 -0000 1.292.2.26
@@ -4655,7 +4655,7 @@
static int reply_digest(struct sip_pvt *p, struct sip_request *req, char *header, char *respheader, char *digest, int digest_len);
static int do_register_auth(struct sip_pvt *p, struct sip_request *req, char *header, char *respheader) {
- char digest[256];
+ char digest[1024];
p->authtries++;
memset(digest,0,sizeof(digest));
if (reply_digest(p,req, header, "REGISTER", digest, sizeof(digest))) {
@@ -4666,7 +4666,7 @@
}
static int do_proxy_auth(struct sip_pvt *p, struct sip_request *req, char *header, char *respheader, char *msg, int init) {
- char digest[256];
+ char digest[1024];
p->authtries++;
memset(digest,0,sizeof(digest));
if (reply_digest(p,req, "Proxy-Authenticate", msg, digest, sizeof(digest) )) {
@@ -4678,7 +4678,7 @@
static int reply_digest(struct sip_pvt *p, struct sip_request *req, char *header, char *orig_header, char *digest, int digest_len) {
- char tmp[256] = "";
+ char tmp[512] = "";
char *realm = "";
char *nonce = "";
char *domain = "";
More information about the svn-commits
mailing list