diff options
author | Volker Lendecke <vl@samba.org> | 2008-10-07 21:24:25 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2008-10-13 11:57:15 +0200 |
commit | 167feb2c914f40abd7618eff5dd0c9cd80a063b6 (patch) | |
tree | c36d29c81b994bfcd3859d711a92cab8eeac5e00 /source3/smbd | |
parent | f6575a270fdfb41e28e1eaeb6d3653db32bb6337 (diff) | |
download | samba-167feb2c914f40abd7618eff5dd0c9cd80a063b6.tar.gz samba-167feb2c914f40abd7618eff5dd0c9cd80a063b6.tar.bz2 samba-167feb2c914f40abd7618eff5dd0c9cd80a063b6.zip |
Fix bug 5691: SIGBUS on Solaris
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/session.c | 5 |
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", |