]> andersk Git - openssh.git/blobdiff - ssh-add.c
Merged OpenBSD CVS changes that go away
[openssh.git] / ssh-add.c
index 0c95ca6d51b83d27c038ef38875054d95a10a5f8..ec472a39b1486136ccceb748327d8a93c70e3f88 100644 (file)
--- a/ssh-add.c
+++ b/ssh-add.c
@@ -201,13 +201,19 @@ list_identities(AuthenticationConnection *ac)
       had_identities = 1;
       printf("%d ", bits);
       buf = BN_bn2dec(e);
-      assert(buf != NULL);
-      printf("%s ", buf);
-      free (buf);
+      if (buf != NULL) {
+        printf("%s ", buf);
+        free (buf);
+      } else {
+       error("list_identities: BN_bn2dec #1 failed.");
+      }
       buf = BN_bn2dec(n);
-      assert(buf != NULL);
-      printf("%s %s\n", buf, comment);
-      free (buf);
+      if (buf != NULL) {
+        printf("%s %s\n", buf, comment);
+        free (buf);
+      } else {
+       error("list_identities: BN_bn2dec #2 failed.");
+      }
       xfree(comment);
     }
   BN_clear_free(e);
This page took 1.33851 seconds and 4 git commands to generate.