Fix the build.
[tprouty/samba.git] / source4 / librpc / rpc / dcerpc_auth.c
index 7c9d04eeb4f6e51379512e690fade31354bf9b7b..14f0f9deb4b2dd22b8ebf75b4b2044da4812810b 100644 (file)
@@ -291,7 +291,7 @@ struct composite_context *dcerpc_bind_auth_send(TALLOC_CTX *mem_ctx,
                                                  auth_type, auth_level);
        if (!NT_STATUS_IS_OK(c->status)) {
                DEBUG(1, ("Failed to start GENSEC client mechanism %s: %s\n",
-                         gensec_get_name_by_authtype(auth_type),
+                         gensec_get_name_by_authtype(sec->generic_state, auth_type),
                          nt_errstr(c->status)));
                composite_error(c, c->status);
                return c;