diff options
author | Andreas Schneider <asn@samba.org> | 2010-08-06 13:49:37 +0200 |
---|---|---|
committer | Andreas Schneider <asn@samba.org> | 2010-08-06 14:20:09 +0200 |
commit | e9eb263391b2be16924b7e6ea935fdf44b1a0ead (patch) | |
tree | 2d551964c1c64b8a2d114e201ffae70ae16a39b9 /source3/rpc_server | |
parent | 043c6f46583fac13588baf207582a08cfa802a28 (diff) | |
download | samba-e9eb263391b2be16924b7e6ea935fdf44b1a0ead.tar.gz samba-e9eb263391b2be16924b7e6ea935fdf44b1a0ead.tar.bz2 samba-e9eb263391b2be16924b7e6ea935fdf44b1a0ead.zip |
s3-spoolss: Make sure we convert a 4 byte value to uint32_t.
Diffstat (limited to 'source3/rpc_server')
-rw-r--r-- | source3/rpc_server/srv_spoolss_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_spoolss_util.c b/source3/rpc_server/srv_spoolss_util.c index 7dc164c263..f8b29fc3b3 100644 --- a/source3/rpc_server/srv_spoolss_util.c +++ b/source3/rpc_server/srv_spoolss_util.c @@ -1110,7 +1110,7 @@ static WERROR winreg_enumval_to_dword(TALLOC_CTX *mem_ctx, return WERR_INVALID_DATATYPE; } - if (v->data_length == 0) { + if (v->data_length != 4) { *dw = 0; return WERR_OK; } |