From 0446fd5edf3f75ddb243216f4e1670f2439df093 Mon Sep 17 00:00:00 2001 From: Janos SUTO Date: Fri, 10 Nov 2017 10:00:21 +0100 Subject: [PATCH] src: fix the position of the child serial Signed-off-by: Janos SUTO --- src/misc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/misc.c b/src/misc.c index 3ed59a17..29a1c257 100644 --- a/src/misc.c +++ b/src/misc.c @@ -367,9 +367,9 @@ int get_random_bytes(unsigned char *buf, int len, unsigned char server_id, unsig if(fd == -1) return ret; *(buf + 12) = server_id; - *(buf + 14) = child_serial; + *(buf + 13) = child_serial; - if(readFromEntropyPool(fd, buf+14+1, len-14-1) != len-14-1){ + if(readFromEntropyPool(fd, buf+13+1, len-13-1) != len-13-1){ syslog(LOG_PRIORITY, "%s: %s", ERR_CANNOT_READ_FROM_POOL, RANDOM_POOL); }