]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
CHANGES
authorMark Andrews <marka@isc.org>
Mon, 21 Feb 2011 06:18:03 +0000 (06:18 +0000)
committerMark Andrews <marka@isc.org>
Mon, 21 Feb 2011 06:18:03 +0000 (06:18 +0000)
lib/isc/sockaddr.c

index d2d27f3969bbbc79554a1de75ae76ebb43a77983..fff77e1e92d01afafe6e2dd55807bbe196ba6c42 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: sockaddr.c,v 1.73 2010/11/17 23:47:09 tbox Exp $ */
+/* $Id: sockaddr.c,v 1.74 2011/02/21 06:18:03 marka Exp $ */
 
 /*! \file */
 
@@ -182,6 +182,9 @@ isc_sockaddr_format(const isc_sockaddr_t *sa, char *array, unsigned int size) {
        isc_result_t result;
        isc_buffer_t buf;
 
+       if (size == 0U)
+               return;
+
        isc_buffer_init(&buf, array, size);
        result = isc_sockaddr_totext(sa, &buf);
        if (result != ISC_R_SUCCESS) {