From 053341a0b37fb071bfcb6559e28078e4d9defd39 Mon Sep 17 00:00:00 2001 From: Andrew Klosterman Date: Tue, 8 Sep 2009 17:38:37 +0200 Subject: [PATCH] s3:smbd: Fix bug 6690, wrong error check --- source/profile/profile.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/source/profile/profile.c b/source/profile/profile.c index bdbd805..f5dccf4 100644 --- a/source/profile/profile.c +++ b/source/profile/profile.c @@ -227,7 +227,7 @@ bool profile_setup(struct messaging_context *msg_ctx, bool rdonly) profile_h = (struct profile_header *)shmat(shm_id, 0, read_only?SHM_RDONLY:0); - if ((long)profile_p == -1) { + if ((long)profile_h == -1) { DEBUG(0,("Can't attach to IPC area. Error was %s\n", strerror(errno))); return False; -- 1.6.0.4