(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:
Love Hörnquist Åstrand
2007-04-19 08:57:37 +00:00
parent b126535eb9
commit 8e7eb6103f

View File

@@ -1207,7 +1207,8 @@ crypto_select(struct crypto_select_options *opt, int argc, char **argv)
free(s); free(s);
free_AlgorithmIdentifier(&selected); free_AlgorithmIdentifier(&selected);
hx509_peer_info_free(peer); if (peer)
hx509_peer_info_free(peer);
return 0; return 0;
} }