From: Michael Jerris Date: Thu, 12 Feb 2009 21:17:44 +0000 (+0000) Subject: Thu Feb 12 14:24:41 CST 2009 Pekka Pessi X-Git-Tag: v1.0.3~191 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f10955584c180c4b33916de59fc483b35923040d;p=thirdparty%2Ffreeswitch.git Thu Feb 12 14:24:41 CST 2009 Pekka Pessi * sres: sres_record_type() now checks pointer argument git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11952 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/libs/sofia-sip/.update b/libs/sofia-sip/.update index 04ec0abdd5..23569485d8 100644 --- a/libs/sofia-sip/.update +++ b/libs/sofia-sip/.update @@ -1 +1 @@ -Thu Feb 12 15:16:22 CST 2009 +Thu Feb 12 15:17:34 CST 2009 diff --git a/libs/sofia-sip/libsofia-sip-ua/sresolv/sres.c b/libs/sofia-sip/libsofia-sip-ua/sresolv/sres.c index 8493b3e803..1439e7e4ed 100644 --- a/libs/sofia-sip/libsofia-sip-ua/sresolv/sres.c +++ b/libs/sofia-sip/libsofia-sip-ua/sresolv/sres.c @@ -1533,7 +1533,8 @@ char const *sres_record_type(int type, char buffer[8]) case sres_qtype_any: return "ANY"; default: - sprintf(buffer, "%u?", type & 65535); + if (buffer) + sprintf(buffer, "%u?", type & 65535); return buffer; } }