]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Fix an uninitialized pointer think-o.
authorTed Lemon <source@isc.org>
Sun, 18 Feb 2001 06:53:00 +0000 (06:53 +0000)
committerTed Lemon <source@isc.org>
Sun, 18 Feb 2001 06:53:00 +0000 (06:53 +0000)
common/ctrace.c

index 9f8a1d7fbae43d4605e74254053c911962ac93c0..60988a64ce63e99a81ea55d9f0b28194a8162c13 100644 (file)
@@ -289,7 +289,8 @@ void trace_seed_input (trace_type_t *ttype, unsigned length, char *buf)
        if (length != sizeof seed) {
                log_error ("trace_seed_input: wrong size (%d)", length);
        }
-       srandom (ntohs (*seed));
+       seed = (u_int32_t *)buf;
+       srandom (ntohl (*seed));
 }
 
 void trace_seed_stop (trace_type_t *ttype) { }