summaryrefslogtreecommitdiff
path: root/source4/torture/libsmbclient
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2017-10-28 11:10:07 +0200
committerAndreas Schneider <asn@cryptomilk.org>2017-10-30 21:09:14 +0100
commit910b0ce2a2e0d671c27a88176ed00e8995669773 (patch)
treede52ad8d5e4cfcf0cdbff3fa3e2d931adb076561 /source4/torture/libsmbclient
parentc3aa8809e19bd97c0891d7c7ed4499f8a6babfb1 (diff)
downloadsamba-910b0ce2a2e0d671c27a88176ed00e8995669773.tar.gz
s4-torture: remove obsolete comment in libsmbclient torture suite.
Since smbc_setX calls now handle string allocation using malloc themselves (since commit 2d41b1ab78639abe4ae030ff482573f464564dd7) we indeed no longer need to provide malloced strings (the extra malloc already got removed earlier). Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Mon Oct 30 21:09:14 CET 2017 on sn-devel-144
Diffstat (limited to 'source4/torture/libsmbclient')
-rw-r--r--source4/torture/libsmbclient/libsmbclient.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/source4/torture/libsmbclient/libsmbclient.c b/source4/torture/libsmbclient/libsmbclient.c
index 16ad35182cd..a56a5de55d7 100644
--- a/source4/torture/libsmbclient/libsmbclient.c
+++ b/source4/torture/libsmbclient/libsmbclient.c
@@ -36,8 +36,6 @@ bool torture_libsmbclient_init_context(struct torture_context *tctx,
smbc_setDebug(ctx, DEBUGLEVEL);
smbc_setOptionDebugToStderr(ctx, 1);
- /* yes, libsmbclient API frees the username when freeing the context, so
- * have to pass malloced data here */
smbc_setUser(ctx,
cli_credentials_get_username(popt_get_cmdline_credentials()));