mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-25 04:09:31 +03:00
test_digestauth*: fixed possible use of uninitialised data
This commit is contained in:
@@ -423,8 +423,8 @@ testDigestAuth ()
|
||||
while (off < 8)
|
||||
{
|
||||
len = read (fd,
|
||||
rnd,
|
||||
8);
|
||||
rnd + off,
|
||||
8 - off);
|
||||
if (len == (size_t) -1)
|
||||
externalErrorExitDesc ("Failed to read '/dev/urandom'");
|
||||
off += len;
|
||||
|
||||
@@ -198,8 +198,8 @@ testDigestAuth ()
|
||||
while (off < 8)
|
||||
{
|
||||
len = read (fd,
|
||||
rnd,
|
||||
8);
|
||||
rnd + off,
|
||||
8 - off);
|
||||
if (len == (size_t) -1)
|
||||
{
|
||||
fprintf (stderr,
|
||||
|
||||
@@ -181,7 +181,7 @@ testDigestAuth ()
|
||||
}
|
||||
while (off < 8)
|
||||
{
|
||||
len = read (fd, rnd, 8);
|
||||
len = read (fd, rnd + off, 8 - off);
|
||||
if (len == (size_t) -1)
|
||||
{
|
||||
fprintf (stderr,
|
||||
|
||||
Reference in New Issue
Block a user