diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2005-08-30 17:23:07 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:35:04 -0500 |
commit | 34305d74e19e09d304db4bfe7fcd46504831feaf (patch) | |
tree | 57b36ca90085cb18cb8f0639c2e0e797d4d7b69b /source4/lib/samba3/smbpasswd.c | |
parent | 10ee597a786839dfa327c166c1919c0b11977632 (diff) | |
download | samba-34305d74e19e09d304db4bfe7fcd46504831feaf.tar.gz samba-34305d74e19e09d304db4bfe7fcd46504831feaf.tar.bz2 samba-34305d74e19e09d304db4bfe7fcd46504831feaf.zip |
r9808: Improve code that selects what "passdb backend" to import from.
(This used to be commit 7739d092d5ca99bd44a1612cc783e38a2f09a67f)
Diffstat (limited to 'source4/lib/samba3/smbpasswd.c')
-rw-r--r-- | source4/lib/samba3/smbpasswd.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/lib/samba3/smbpasswd.c b/source4/lib/samba3/smbpasswd.c index 5976d2db57..fe0780c8d3 100644 --- a/source4/lib/samba3/smbpasswd.c +++ b/source4/lib/samba3/smbpasswd.c @@ -219,6 +219,11 @@ NTSTATUS samba3_read_smbpasswd(const char *filename, TALLOC_CTX *ctx, struct sam lines = file_lines_load(filename, &numlines, ctx); + if (lines == NULL) { + DEBUG(0, ("Unable to load lines from %s\n", filename)); + return NT_STATUS_UNSUCCESSFUL; + } + *accounts = talloc_array(ctx, struct samba3_samaccount, numlines); for (i = 0; i < numlines; i++) { |