Fix crash when running without policy file parameter.
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Wed, 29 Feb 2012 10:07:26 +0000 (10:07 +0000)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Wed, 29 Feb 2012 10:07:26 +0000 (10:07 +0000)
org.glite.lb.server/src/bkserverd.c

index 6887918..916f0fe 100644 (file)
@@ -1074,7 +1074,7 @@ int bk_handle_connection(int conn, struct timeval *timeout, void *data)
 
        ctx->rssTime = rss_time;
 
-       ctx->authz_policy_file = strdup(policy_file);
+       if (policy_file) ctx->authz_policy_file = strdup(policy_file);
 
        gettimeofday(&conn_start, 0);