diff options
author | Andrew Klosterman <andrew.klosterman+samba_bugzilla@gmail.com> | 2009-09-08 17:38:37 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-09-08 17:39:51 +0200 |
commit | f78f92acfe2710f9f3ff11f9acea8c240f6cc5e6 (patch) | |
tree | e25314548b6153f6132713258ed4bfce40b80068 /source3/profile | |
parent | 4323c1321a1f498541b36169b1a34ea42824c397 (diff) | |
download | samba-f78f92acfe2710f9f3ff11f9acea8c240f6cc5e6.tar.gz samba-f78f92acfe2710f9f3ff11f9acea8c240f6cc5e6.tar.bz2 samba-f78f92acfe2710f9f3ff11f9acea8c240f6cc5e6.zip |
s3:smbd: Fix bug 6690, wrong error check
Diffstat (limited to 'source3/profile')
-rw-r--r-- | source3/profile/profile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/profile/profile.c b/source3/profile/profile.c index 6d2d5ae06d..61b0a7cc68 100644 --- a/source3/profile/profile.c +++ b/source3/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; |