mirror of
https://github.com/samba-team/samba.git
synced 2025-01-27 14:04:05 +03:00
r6261: Tidyup message str printf. Ensure tvs struct is zeroed.
Jeremy.
This commit is contained in:
parent
f1e12be9ed
commit
6c9f227ef4
@ -3581,6 +3581,7 @@ static int call_trans2setfilepathinfo(connection_struct *conn, char *inbuf, char
|
||||
return ERROR_NT(NT_STATUS_INVALID_PARAMETER);
|
||||
|
||||
ZERO_STRUCT(sbuf);
|
||||
ZERO_STRUCT(tvs);
|
||||
|
||||
if (tran_call == TRANSACT2_SETFILEINFO) {
|
||||
if (total_params < 4) {
|
||||
|
@ -290,7 +290,7 @@ static BOOL password_change(const char *remote_mach, char *username,
|
||||
err_str, sizeof(err_str), msg_str, sizeof(msg_str));
|
||||
|
||||
if(*msg_str)
|
||||
printf(msg_str);
|
||||
printf("%s", msg_str);
|
||||
if(*err_str)
|
||||
fprintf(stderr, "%s", err_str);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user