1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-04 17:47:26 +03:00

s3:winbind: No point in using strequal to detect a 0-length string

This commit is contained in:
Volker Lendecke 2009-10-03 17:11:43 +02:00
parent 6a4efccb38
commit c83b80435b

View File

@ -46,10 +46,10 @@ bool fillup_pw_field(const char *lp_template,
been set in the nss_info backend), then use that.
Otherwise use the template value passed in. */
if ( in && !strequal(in,"") && lp_security() == SEC_ADS ) {
if ((in != NULL) && (in[0] != '\0') && (lp_security() == SEC_ADS)) {
templ = talloc_sub_specified(talloc_tos(), in,
username, domname,
uid, gid);
uid, gid);
} else {
templ = talloc_sub_specified(talloc_tos(), lp_template,
username, domname,