X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fentropy.c;h=f9808553dc26f9ad150dfd2d150555b1f30e46f9;hb=0ef165ecb57943e17a8ee8270df68ffb8d032e29;hp=53f7e72a60d5a832d2e5bf7aad050639470d72db;hpb=06f14c92f666e03708ffa8731223611943bc28bd;p=sliver-openvswitch.git diff --git a/lib/entropy.c b/lib/entropy.c index 53f7e72a6..f9808553d 100644 --- a/lib/entropy.c +++ b/lib/entropy.c @@ -60,10 +60,8 @@ get_entropy(void *buffer, size_t n) CryptAcquireContext(&crypt_prov, NULL, NULL, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT); if (!CryptGenRandom(crypt_prov, n, buffer)) { - char *msg_buf = ovs_lasterror_to_string(); + VLOG_ERR("CryptGenRandom: read error (%s)", ovs_lasterror_to_string()); error = EINVAL; - VLOG_ERR("CryptGenRandom: read error (%s)", msg_buf); - LocalFree(msg_buf); } CryptReleaseContext(crypt_prov, 0);