Free error messages from MyProxy API, it doesn't seem to do so automatically
authorDaniel Kouřil <kouril@ics.muni.cz>
Mon, 21 Mar 2005 11:43:34 +0000 (11:43 +0000)
committerDaniel Kouřil <kouril@ics.muni.cz>
Mon, 21 Mar 2005 11:43:34 +0000 (11:43 +0000)
org.glite.security.proxyrenewal/src/renew.c

index 6959f68..ca6158c 100644 (file)
@@ -157,12 +157,14 @@ renew_proxy(proxy_record *record, char *basename, char **new_proxy)
    } else
       socket_attrs->psport = MYPROXY_SERVER_PORT;
 
+   verror_clear();
    ret = myproxy_get_delegation(socket_attrs, client_request,
                                server_response, tmp_proxy);
    if (ret == 1) {
       ret = EDG_WLPR_ERROR_MYPROXY;
       edg_wlpr_Log(LOG_ERR, "Error contacting MyProxy server for proxy %s: %s",
                   repository_file, verror_get_string());
+      verror_clear();
       goto end;
    }