summaryrefslogtreecommitdiffstats
path: root/source3/passdb/pdb_smbpasswd.c
diff options
context:
space:
mode:
authorJim McDonough <jmcd@samba.org>2002-03-06 19:14:37 +0000
committerJim McDonough <jmcd@samba.org>2002-03-06 19:14:37 +0000
commit37a9d2a9c2fe00094bd1788c9b572d395e1fa6e7 (patch)
treef54b79f7881fc4de218711b8f51a7d9fca637c60 /source3/passdb/pdb_smbpasswd.c
parentb9998ace1f75531ea8b7d927c18ad5bd668212ff (diff)
downloadsamba-37a9d2a9c2fe00094bd1788c9b572d395e1fa6e7.tar.gz
samba-37a9d2a9c2fe00094bd1788c9b572d395e1fa6e7.tar.xz
samba-37a9d2a9c2fe00094bd1788c9b572d395e1fa6e7.zip
Fix SIGSEGV on error message when trying to add a user to smbpasswd file without a unix account.
(This used to be commit 2fdd601f2efaf3515f0e4c30fa176651eb4bb387)
Diffstat (limited to 'source3/passdb/pdb_smbpasswd.c')
-rw-r--r--source3/passdb/pdb_smbpasswd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/passdb/pdb_smbpasswd.c b/source3/passdb/pdb_smbpasswd.c
index e32af604fd6..78c1a91d489 100644
--- a/source3/passdb/pdb_smbpasswd.c
+++ b/source3/passdb/pdb_smbpasswd.c
@@ -610,7 +610,7 @@ static BOOL add_smbfilepwd_entry(struct smbpasswd_privates *smbpasswd_state, str
/* Account not in /etc/passwd hack!!! */
if (!newpwd->smb_userid_set) {
if (!smbpasswd_state->permit_non_unix_accounts) {
- DEBUG(0, ("add_smbfilepwd_entry: cannot add account %s without unix identity\n", pwd->smb_name));
+ DEBUG(0, ("add_smbfilepwd_entry: cannot add account %s without unix identity\n", newpwd->smb_name));
endsmbfilepwent(fp, &(smbpasswd_state->pw_file_lock_depth));
return False;
}