]> granicus.if.org Git - transmission/commitdiff
(trunk, libT) #5467: 'transmission-daemon SEGFAULTs on startup without error message...
authorJordan Lee <jordan@transmissionbt.com>
Tue, 21 Jan 2014 02:27:46 +0000 (02:27 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Tue, 21 Jan 2014 02:27:46 +0000 (02:27 +0000)
libtransmission/session.c

index 4f0bdf4d5d31c87153442aca1330dc0e9bfce35e..de36bb340078a942e1e08edac6f55c40fa2c5230 100644 (file)
@@ -2239,6 +2239,12 @@ loadBlocklists (tr_session * session)
   /* walk the blocklist directory... */
   dirname = tr_buildPath (session->configDir, "blocklists", NULL);
   odir = opendir (dirname);
+  if (odir == NULL)
+    {
+      tr_free (dirname);
+      return;
+    }
+
   while ((d = readdir (odir)))
     {
       char * path;