1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

lib: Allow NULL converted_size in convert_string_talloc

This commit is contained in:
Volker Lendecke 2011-06-23 14:44:25 +02:00
parent d7cc8571f7
commit a52f179951

View File

@ -376,7 +376,9 @@ bool convert_string_talloc_handle(TALLOC_CTX *ctx, struct smb_iconv_handle *ic,
errno = ENOMEM;
return false;
}
*converted_size = destlen;
if (converted_size != NULL) {
*converted_size = destlen;
}
*dest = ob;
return true;
}
@ -470,7 +472,9 @@ bool convert_string_talloc_handle(TALLOC_CTX *ctx, struct smb_iconv_handle *ic,
}
}
*converted_size = destlen;
if (converted_size != NULL) {
*converted_size = destlen;
}
return true;
}