diff options
author | Stefan Metzmacher <metze@samba.org> | 2004-08-11 21:06:11 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:57:51 -0500 |
commit | daa4a722f9623e057981c01efdb9d831a174a53c (patch) | |
tree | 67e6c3d6fc66fa18c6b6c7c4c658d4668685225a | |
parent | 1d3b81e6c0c4c654c7395fe84b053cd77ef7d81a (diff) | |
download | samba-daa4a722f9623e057981c01efdb9d831a174a53c.tar.gz samba-daa4a722f9623e057981c01efdb9d831a174a53c.tar.bz2 samba-daa4a722f9623e057981c01efdb9d831a174a53c.zip |
r1737: don't segfault when a mech don't have a session_info hook
metze
(This used to be commit 68f3e538265b59ec818917b914678485585795a6)
-rw-r--r-- | source4/libcli/auth/gensec.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/libcli/auth/gensec.c b/source4/libcli/auth/gensec.c index 3db6002639..24c2c18877 100644 --- a/source4/libcli/auth/gensec.c +++ b/source4/libcli/auth/gensec.c @@ -355,6 +355,9 @@ NTSTATUS gensec_session_key(struct gensec_security *gensec_security, 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); } |