summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2004-08-11 21:06:11 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:57:51 -0500
commitdaa4a722f9623e057981c01efdb9d831a174a53c (patch)
tree67e6c3d6fc66fa18c6b6c7c4c658d4668685225a /source4
parent1d3b81e6c0c4c654c7395fe84b053cd77ef7d81a (diff)
downloadsamba-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)
Diffstat (limited to 'source4')
-rw-r--r--source4/libcli/auth/gensec.c3
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);
}