From a9260f65462dfdb99ef4035fe561253bf3cebcec Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Thu, 10 Jul 2014 01:09:56 +0200 Subject: [PATCH] libsmb: no stackframe required for just returning a variable simplify smbc_getFunctionAuthData() again, sparing a talloc stackframe. This partly reverts bc5bd4010e8fedf19047ed6f7a793cd373f9f14f. Signed-off-by: Michael Adam --- source3/libsmb/libsmb_setget.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/source3/libsmb/libsmb_setget.c b/source3/libsmb/libsmb_setget.c index 3255b52..ea8676f 100644 --- a/source3/libsmb/libsmb_setget.c +++ b/source3/libsmb/libsmb_setget.c @@ -507,11 +507,7 @@ smbc_setOptionUseNTHash(SMBCCTX *c, smbc_bool b) smbc_get_auth_data_fn smbc_getFunctionAuthData(SMBCCTX *c) { - smbc_get_auth_data_fn ret; - TALLOC_CTX *frame = talloc_stackframe(); - ret = c->callbacks.auth_fn; - TALLOC_FREE(frame); - return ret; + return c->callbacks.auth_fn; } /** Set the function for obtaining authentication data */ -- 1.9.1