summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-10-07 21:24:25 +0200
committerVolker Lendecke <vl@samba.org>2008-10-13 11:57:15 +0200
commit167feb2c914f40abd7618eff5dd0c9cd80a063b6 (patch)
treec36d29c81b994bfcd3859d711a92cab8eeac5e00 /source3
parentf6575a270fdfb41e28e1eaeb6d3653db32bb6337 (diff)
downloadsamba-167feb2c914f40abd7618eff5dd0c9cd80a063b6.tar.gz
samba-167feb2c914f40abd7618eff5dd0c9cd80a063b6.tar.bz2
samba-167feb2c914f40abd7618eff5dd0c9cd80a063b6.zip
Fix bug 5691: SIGBUS on Solaris
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/session.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/smbd/session.c b/source3/smbd/session.c
index 3b431a19be..8163eb30af 100644
--- a/source3/smbd/session.c
+++ b/source3/smbd/session.c
@@ -113,7 +113,10 @@ bool session_claim(user_struct *vuser)
break;
}
- sess_pid = ((struct sessionid *)rec->value.dptr)->pid;
+ memcpy(&sess_pid,
+ ((char *)rec->value.dptr)
+ + offsetof(struct sessionid, pid),
+ sizeof(sess_pid));
if (!process_exists(sess_pid)) {
DEBUG(5, ("%s has died -- re-using session\n",