Displaying 1 result from an estimated 1 matches for "lsmbclinet".
Did you mean:
smbclinet
2004 Apr 09
0
why do occur seg-fault at uicode_to_unix_char() - using remote_change_password function???
...assword)
{
char err[1024];
int ret;
memset( &err, '\0', sizeof(err));
ret = remote_password_change(remotehost, username, smboldpassword,
password, err, sizeof(err));
if( *err)
fprintf(stderr, err);
return ret;
}
and compiling with follow option
gcc -o testsamba testsamba.c -lsmbclinet /usr/lib/libsmbclinet.a -g
and run using gdb
gdb ./testsamba
gdb> run
Program received signal SIGSEGV, Segmentation fault,
0x080850dc in unicode_to_unix_char()
gdb) where
#0 0x08085dc in unicode_to_unix_char()
#1 0x08069a27 in clistr_pull()
#2 0x08060a7b in cli_negprot()
...
...
why does th...