1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

s3:smbd: Fix bug 6690, wrong error check

This commit is contained in:
Andrew Klosterman 2009-09-08 17:38:37 +02:00 committed by Volker Lendecke
parent 4323c1321a
commit f78f92acfe

View File

@ -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;