]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
raw_to_string no longer returns NULL.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Thu, 5 Apr 2012 16:31:28 +0000 (18:31 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Thu, 5 Apr 2012 16:31:28 +0000 (18:31 +0200)
src/common.c

index 48f56bdcc75e5ad94379b2b260b3dff64a931bb9..b61bc0f20f7b4401d8ce3d26a43ae6f43e61b9dc 100644 (file)
@@ -51,10 +51,10 @@ raw_to_string (const unsigned char *raw, size_t raw_size)
     static char buf[1024];
     size_t i;
     if (raw_size == 0)
-        return NULL;
+        return "(empty)";
 
     if (raw_size * 3 + 1 >= sizeof (buf))
-        return NULL;
+        return "(too large)";
 
     for (i = 0; i < raw_size; i++)
       {