From: Andrew Klosterman Date: Tue, 8 Sep 2009 15:38:37 +0000 (+0200) Subject: s3:smbd: Fix bug 6690, wrong error check X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=076e24cbaf9009f744978b03ddf6ef593d90e9c1;p=thirdparty%2Fsamba.git s3:smbd: Fix bug 6690, wrong error check --- 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;