(crypto_select): only free peer if it was used.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20426 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1207,7 +1207,8 @@ crypto_select(struct crypto_select_options *opt, int argc, char **argv)
|
||||
free(s);
|
||||
free_AlgorithmIdentifier(&selected);
|
||||
|
||||
hx509_peer_info_free(peer);
|
||||
if (peer)
|
||||
hx509_peer_info_free(peer);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user