get_random_data() can return NULL (for instance, if we can't open /dev/random
authorjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Tue, 13 Mar 2007 14:43:14 +0000 (14:43 +0000)
committerjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Tue, 13 Mar 2007 14:43:14 +0000 (14:43 +0000)
commit7da629c2abc50b798dbb25c2badd0e98ee702f79
treefeb3c365732c7236133a632d776a77771c59698e
parente7cf948600071c77fae94f2257c0471e39450380
get_random_data() can return NULL (for instance, if we can't open /dev/random
on Unix), yet cmdgen failed to deal with this. Spotted by Darren Tucker.

git-svn-id: svn://svn.tartarus.org/sgt/putty@7396 cda61777-01e9-0310-a592-d414129be87e
cmdgen.c