summaryrefslogtreecommitdiff
path: root/source4/heimdal/lib/gssapi/mech/gss_pseudo_random.c
diff options
context:
space:
mode:
authorbubulle <bubulle@alioth.debian.org>2010-09-06 17:45:31 +0000
committerbubulle <bubulle@alioth.debian.org>2010-09-06 17:45:31 +0000
commit647b5024ebe9599e153c948b61fe7a339756b1f9 (patch)
tree882eca1ca1276029e02e757658cb73106493dc95 /source4/heimdal/lib/gssapi/mech/gss_pseudo_random.c
parentd63d5b7793d30d6f18ab736b3aad1bface02f1e6 (diff)
downloadsamba-647b5024ebe9599e153c948b61fe7a339756b1f9.tar.gz
Merge upstream 3.5.4~dfsg
git-svn-id: svn://svn.debian.org/svn/pkg-samba/trunk/samba@3571 fc4039ab-9d04-0410-8cac-899223bdd6b0
Diffstat (limited to 'source4/heimdal/lib/gssapi/mech/gss_pseudo_random.c')
-rw-r--r--source4/heimdal/lib/gssapi/mech/gss_pseudo_random.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/heimdal/lib/gssapi/mech/gss_pseudo_random.c b/source4/heimdal/lib/gssapi/mech/gss_pseudo_random.c
index b907f94038..771efcb434 100644
--- a/source4/heimdal/lib/gssapi/mech/gss_pseudo_random.c
+++ b/source4/heimdal/lib/gssapi/mech/gss_pseudo_random.c
@@ -45,7 +45,7 @@ gss_pseudo_random(OM_uint32 *minor_status,
gss_buffer_t prf_out)
{
struct _gss_context *ctx = (struct _gss_context *) context;
- gssapi_mech_interface m = ctx->gc_mech;
+ gssapi_mech_interface m;
OM_uint32 major_status;
_mg_buffer_zero(prf_out);
@@ -56,6 +56,8 @@ gss_pseudo_random(OM_uint32 *minor_status,
return GSS_S_NO_CONTEXT;
}
+ m = ctx->gc_mech;
+
if (m->gm_pseudo_random == NULL)
return GSS_S_UNAVAILABLE;