]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Corrected issue when an EGD device was not found. Reported by Joshua Phillips.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Mon, 7 Jan 2013 16:43:47 +0000 (17:43 +0100)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Mon, 7 Jan 2013 16:46:58 +0000 (17:46 +0100)
lib/nettle/egd.c

index a9332f19ee24597ca8bf42356efe9f60fbe392c1..d2600eecff15b8f8111c1bc185d9990b37d7d91d 100644 (file)
@@ -148,6 +148,11 @@ _rndegd_connect_socket (void)
     }
 
   name = find_egd_name ();
+  if (name == NULL)
+    {
+      _gnutls_debug_log ("Could not detect an egd device.\n");
+      return -1;
+    }
 
   if (strlen (name) + 1 >= sizeof addr.sun_path)
     {