gssd: don't krb5_free_context if krb5_init_context fails
authorNeilBrown <neilb@suse.de>
Wed, 20 Mar 2013 17:03:58 +0000 (13:03 -0400)
committerSteve Dickson <steved@redhat.com>
Mon, 25 Mar 2013 14:09:09 +0000 (10:09 -0400)
commit5b9108f73a5f15372f9be9238070cf8d62956a49
tree02bd0839e1c74c62df660fcdf6a2d900965b2d15
parentda56ddf07ce41bd324c5c38db7d9ac03f4887258
gssd: don't krb5_free_context if krb5_init_context fails

Most places that call krb5_init_context() abort cleanly on failure.
However these two then try to free the non-existent context, which
doesn't end well.

Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Steve Dickson <steved@redhat.com>
utils/gssd/krb5_util.c