gensec: Make sure to check the optional auth_context hooks before using them
authorAndrew Bartlett <abartlet@samba.org>
Wed, 11 Jan 2012 08:00:34 +0000 (19:00 +1100)
committerStefan Metzmacher <metze@samba.org>
Wed, 11 Jan 2012 08:15:42 +0000 (09:15 +0100)
commit5c92e9a46f46c0967fbec40826d5392ec86c3d6f
tree8540615671f838424d4afc83b52fa3c8835074c5
parent98ba33b2583185ae66f7eaa86b74bf3d0fcc99ff
gensec: Make sure to check the optional auth_context hooks before using them

These are optional to supply - some callers only provide an auth_context for the
other plugin functions, and so we need to deal with this cleanly.

Andrew Bartlett

Signed-off-by: Stefan Metzmacher <metze@samba.org>
auth/gensec/gensec_util.c