summaryrefslogtreecommitdiffstats
path: root/src/gsm
diff options
context:
space:
mode:
Diffstat (limited to 'src/gsm')
-rw-r--r--src/gsm/gsm_utils.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gsm/gsm_utils.c b/src/gsm/gsm_utils.c
index f154c2b6..365920fa 100644
--- a/src/gsm/gsm_utils.c
+++ b/src/gsm/gsm_utils.c
@@ -466,8 +466,9 @@ int osmo_get_rand_id(uint8_t *out, size_t len)
if (rc < 0) {
#if (USE_GNUTLS)
return gnutls_rnd(GNUTLS_RND_RANDOM, out, len);
-#endif
+#else
return -errno;
+#endif
}
/* getrandom() failed partially due to signal interruption: