diff options
author | Jeremy Allison <jra@samba.org> | 1998-04-20 23:57:29 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-04-20 23:57:29 +0000 |
commit | 2beb8f3cb5437cb2b214c9be0c919c1b3988a857 (patch) | |
tree | d681f321afa60ece4677513b5ea1976515480d8e /source3/rpc_server | |
parent | 6babe8da07b6a803d15deed70dd7e6aaae93ed4a (diff) | |
download | samba-2beb8f3cb5437cb2b214c9be0c919c1b3988a857.tar.gz samba-2beb8f3cb5437cb2b214c9be0c919c1b3988a857.tar.bz2 samba-2beb8f3cb5437cb2b214c9be0c919c1b3988a857.zip |
genrand.c: Improved filename based random seed generation.
lib/rpc/server/srv_netlog.c: Changed to use generate_random_buffer().
Jeremy.
(This used to be commit 093d060a06d75c6ee5b1329d524334f4db97cba6)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r-- | source3/rpc_server/srv_netlog.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/rpc_server/srv_netlog.c b/source3/rpc_server/srv_netlog.c index c8386d4724..cbe35e5202 100644 --- a/source3/rpc_server/srv_netlog.c +++ b/source3/rpc_server/srv_netlog.c @@ -289,10 +289,9 @@ static void api_net_req_chal( int uid, memcpy(vuser->dc.clnt_cred.challenge.data, q_r.clnt_chal.data, sizeof(q_r.clnt_chal.data)); /* create a server challenge for the client */ - /* PAXX: set these to random values. */ - /* lkcl: paul, you mentioned that it doesn't really matter much */ - SIVAL(vuser->dc.srv_chal.data, 0, 0x11111111); - SIVAL(vuser->dc.srv_chal.data, 4, 0x11111111); + /* Set these to random values. */ + generate_random_buffer(vuser->dc.srv_chal.data, 8, False); + memcpy(vuser->dc.srv_cred.challenge.data, vuser->dc.srv_chal.data, 8); bzero(vuser->dc.sess_key, sizeof(vuser->dc.sess_key)); |