From e8f3aa2469585e0300f3601b4b597af115977a4b40bebd67a9e9c7923091be0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Fri, 7 Apr 2017 08:41:51 +0000 Subject: [PATCH] Accepting request 486299 from home:pgajdos - security update: initialize random generator, CVE-2015-9019 [bsc#934119] OBS-URL: https://build.opensuse.org/request/show/486299 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libxslt?expand=0&rev=57 --- libxslt-random-seed.patch | 2 +- libxslt.changes | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/libxslt-random-seed.patch b/libxslt-random-seed.patch index f6b3659..42e3aab 100644 --- a/libxslt-random-seed.patch +++ b/libxslt-random-seed.patch @@ -34,7 +34,7 @@ index 6b24dbe0..b7a8d6e1 100644 + int fd = open("/dev/urandom",O_RDONLY); + + seed = time(NULL); /* just in case /dev/urandom is not there */ -+ if (fd == -1) { ++ if (fd != -1) { + read (fd, &seed, sizeof(seed)); + close (fd); + } diff --git a/libxslt.changes b/libxslt.changes index cbdc356..76853ae 100644 --- a/libxslt.changes +++ b/libxslt.changes @@ -1,7 +1,8 @@ ------------------------------------------------------------------- Wed Apr 5 07:46:27 UTC 2017 - pgajdos@suse.com -- security update: initialize random generator [bsc#934119] +- security update: initialize random generator, CVE-2015-9019 + [bsc#934119] + libxslt-random-seed.patch -------------------------------------------------------------------