| Server IP : 45.40.142.9 / Your IP : 216.73.216.75 Web Server : Apache System : Linux s45-40-142-9.secureserver.net 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64 User : bayspec ( 506) PHP Version : 5.6.40 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/doc/samba-3.6.23/libsmbclient/ |
Upload File : |
#include <libsmbclient.h>
#include <stdlib.h>
#include <stdio.h>
void create_and_destroy_context (void)
{
int i;
SMBCCTX *ctx;
ctx = smbc_new_context ();
/* Both should do the same thing */
smbc_setOptionDebugToStderr(ctx, 1);
smbc_option_set(ctx, "debug_to_stderr", 1);
smbc_setDebug(ctx, 1);
i = smbc_getDebug(ctx);
if (i != 1) {
printf("smbc_getDebug() did not return debug level set\n");
exit(1);
}
if (!smbc_getOptionDebugToStderr(ctx)) {
printf("smbc_setOptionDebugToStderr() did not stick\n");
exit(1);
}
smbc_init_context (ctx);
smbc_free_context (ctx, 1);
}
int main (int argc, char **argv)
{
create_and_destroy_context ();
create_and_destroy_context ();
return 0;
}