Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv22301

Modified Files:
        dnsmgr.c 
Log Message:
let's try allocating the proper amount of memory...


Index: dnsmgr.c
===================================================================
RCS file: /usr/cvsroot/asterisk/dnsmgr.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- dnsmgr.c    6 Jun 2005 22:12:18 -0000       1.6
+++ dnsmgr.c    23 Jun 2005 19:11:49 -0000      1.7
@@ -74,7 +74,7 @@
        if (!name || !result || ast_strlen_zero(name))
                return NULL;
 
-       entry = calloc(1, sizeof(*result) + strlen(name));
+       entry = calloc(1, sizeof(*entry) + strlen(name));
        if (!entry)
                return NULL;
 

_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs

Reply via email to