]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Sat, 10 Jun 2017 17:53:16 +0000 (13:53 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sat, 10 Jun 2017 17:53:16 +0000 (13:53 -0400)
MagickCore/policy.c

index 784346b5fd42db72726a9513fec4c6e1ee458243..2ba882c6475c1b72a11e8905eeeae913c7f3b1a9 100644 (file)
@@ -1084,6 +1084,7 @@ MagickExport MagickBooleanType SetMagickSecurityPolicy(const char *policy,
     }
   UnlockSemaphoreInfo(policy_semaphore);
   status=LoadPolicyCache(policy_cache,policy,"[user-policy]",0,exception);
-  ResourceComponentGenesis();
-  return(status);
+  if (status == MagickFalse)
+    return(MagickFalse);
+  return(ResourceComponentGenesis());
 }