diff options
author | Andrew Klosterman <andrew.klosterman+samba_bugzilla@gmail.com> | 2009-09-08 17:38:37 +0200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2009-10-08 14:50:04 +0200 |
commit | e88b35716b3e6a2527243f563ce0440a9a65794b (patch) | |
tree | b7dcf2d31e6e5643401cc50ef930ee8c5221778b | |
parent | 3e2c96390a8840f4c6fcface8e3dfb161c53be21 (diff) | |
download | samba-e88b35716b3e6a2527243f563ce0440a9a65794b.tar.gz |
s3:smbd: Fix bug 6690, wrong error check
(cherry picked from commit 076e24cbaf9009f744978b03ddf6ef593d90e9c1)
-rw-r--r-- | 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 bdbd8057183..f5dccf40fd5 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; |