diff options
author | Volker Lendecke <vl@samba.org> | 2012-01-06 16:38:44 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2012-01-06 17:23:44 +0100 |
commit | 421aab2e12d3890fe16924ce0a7ad16008a2ec79 (patch) | |
tree | 9043104701b69e2414aff1989f77ce6c1c02388c /source3/param | |
parent | 6529e520ee777e279f8211e24fc7575326298d0c (diff) | |
download | samba-421aab2e12d3890fe16924ce0a7ad16008a2ec79.tar.gz samba-421aab2e12d3890fe16924ce0a7ad16008a2ec79.tar.bz2 samba-421aab2e12d3890fe16924ce0a7ad16008a2ec79.zip |
s3: Avoid a potential alignment requirement issue
Diffstat (limited to 'source3/param')
-rw-r--r-- | source3/param/loadparm.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 1310353348..2ab32f8920 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -8504,9 +8504,8 @@ static int process_usershare_file(const char *dir_name, const char *file_name, i if (NT_STATUS_IS_OK(status) && (data.dptr != NULL) && - (data.dsize == sizeof(iService))) - { - iService = *(int *)data.dptr; + (data.dsize == sizeof(iService))) { + memcpy(&iService, data.dptr, sizeof(iService)); } } |