Author: metze Date: 2004-08-11 21:06:11 +0000 (Wed, 11 Aug 2004) New Revision: 1737 WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/&rev=1737&nolog=1 Log: don't segfault when a mech don't have a session_info hook
metze Modified: branches/SAMBA_4_0/source/libcli/auth/gensec.c Changeset: Modified: branches/SAMBA_4_0/source/libcli/auth/gensec.c =================================================================== --- branches/SAMBA_4_0/source/libcli/auth/gensec.c 2004-08-11 19:48:36 UTC (rev 1736) +++ branches/SAMBA_4_0/source/libcli/auth/gensec.c 2004-08-11 21:06:11 UTC (rev 1737) @@ -355,6 +355,9 @@ NTSTATUS gensec_session_info(struct gensec_security *gensec_security, struct auth_session_info **session_info) { + if (!gensec_security->ops->session_info) { + return NT_STATUS_NOT_IMPLEMENTED; + } return gensec_security->ops->session_info(gensec_security, session_info); }