--- e_aep.c.orig	2016-03-06 10:47:23.113646348 -0800
+++ e_aep.c	2016-03-06 10:52:27.991394742 -0800
@@ -1137,7 +1137,9 @@
     /*
      * Expand the result bn so that it can hold our big num. Size is in bits
      */
-    bn_expand(bn, (int)(BigNumSize << 3));
+    if (!bn_expand(bn, (int)(BigNumSize << 3)) == NULL)
+	/* what should we do here, a new error code, etc? */
+	return 117; /*	bn_expand could return NULL, could it not? */
 
 #  ifdef SIXTY_FOUR_BIT_LONG
     bn->top = BigNumSize >> 3;
