summaryrefslogtreecommitdiff
path: root/third_party/srtp/crypto/kernel/alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/srtp/crypto/kernel/alloc.c')
-rw-r--r--third_party/srtp/crypto/kernel/alloc.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/third_party/srtp/crypto/kernel/alloc.c b/third_party/srtp/crypto/kernel/alloc.c
index 5dd09474..e728798c 100644
--- a/third_party/srtp/crypto/kernel/alloc.c
+++ b/third_party/srtp/crypto/kernel/alloc.c
@@ -42,6 +42,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+ #include <config.h>
+#endif
+
#include "alloc.h"
#include "crypto_kernel.h"
@@ -73,8 +77,9 @@ crypto_alloc(size_t size) {
if (ptr) {
debug_print(mod_alloc, "(location: %p) allocated", ptr);
- } else
+ } else {
debug_print(mod_alloc, "allocation failed (asked for %d bytes)\n", size);
+ }
return ptr;
}
@@ -98,9 +103,10 @@ crypto_alloc(size_t size) {
if (ptr) {
debug_print(mod_alloc, "(location: %p) allocated", ptr);
- } else
+ } else {
debug_print(mod_alloc, "allocation failed (asked for %d bytes)\n", size);
-
+ }
+
return ptr;
}