summaryrefslogtreecommitdiff
path: root/source3/winbindd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-10-03 17:11:43 +0200
committerVolker Lendecke <vl@samba.org>2009-10-04 00:14:01 +0200
commitc83b80435bc88983dac75af084be853bdbd4093e (patch)
treec0c582bad89635206ceea6b99f68e4928694b8b0 /source3/winbindd
parent6a4efccb38109423e22714ce071d8357073bf5ce (diff)
downloadsamba-c83b80435bc88983dac75af084be853bdbd4093e.tar.gz
samba-c83b80435bc88983dac75af084be853bdbd4093e.tar.bz2
samba-c83b80435bc88983dac75af084be853bdbd4093e.zip
s3:winbind: No point in using strequal to detect a 0-length string
Diffstat (limited to 'source3/winbindd')
-rw-r--r--source3/winbindd/winbindd_user.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/winbindd/winbindd_user.c b/source3/winbindd/winbindd_user.c
index 7af2d6d202..b709f4c265 100644
--- a/source3/winbindd/winbindd_user.c
+++ b/source3/winbindd/winbindd_user.c
@@ -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,