mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
s3:smbd: Fix bug 6690, wrong error check
This commit is contained in:
parent
4323c1321a
commit
f78f92acfe
@ -227,7 +227,7 @@ bool profile_setup(struct messaging_context *msg_ctx, bool rdonly)
|
|||||||
|
|
||||||
profile_h = (struct profile_header *)shmat(shm_id, 0,
|
profile_h = (struct profile_header *)shmat(shm_id, 0,
|
||||||
read_only?SHM_RDONLY: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",
|
DEBUG(0,("Can't attach to IPC area. Error was %s\n",
|
||||||
strerror(errno)));
|
strerror(errno)));
|
||||||
return False;
|
return False;
|
||||||
|
Loading…
Reference in New Issue
Block a user