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 -------------------------------------------------------------------