diff options
-rw-r--r-- | src/tool_getparam.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tool_getparam.c b/src/tool_getparam.c index 582956279..3fed3fb85 100644 --- a/src/tool_getparam.c +++ b/src/tool_getparam.c @@ -1302,11 +1302,11 @@ ParameterError getparameter(char *flag, /* f or -long-flag */ { char *certname, *passphrase; parse_cert_parameter(nextarg, &certname, &passphrase); - if(certname) { - GetStr(&config->cert, certname); - } + Curl_safefree(config->cert); + config->cert = certname; if(passphrase) { - GetStr(&config->key_passwd, passphrase); + Curl_safefree(config->key_passwd); + config->key_passwd = passphrase; } cleanarg(nextarg); } |