summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/smbd/map_username.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/map_username.c b/source3/smbd/map_username.c
index 1f523cc89f..7cbde3c59e 100644
--- a/source3/smbd/map_username.c
+++ b/source3/smbd/map_username.c
@@ -82,7 +82,7 @@ BOOL map_username(fstring user)
/* should be either no lines or a single line with the mapped username */
- if (numlines) {
+ if (numlines && qlines) {
DEBUG(3,("Mapped user %s to %s\n", user, qlines[0] ));
fstrcpy( user, qlines[0] );
}