]> andersk Git - openssh.git/blobdiff - bufbn.c
- djm@cvs.openbsd.org 2010/01/30 02:54:53
[openssh.git] / bufbn.c
diff --git a/bufbn.c b/bufbn.c
index ce8fba5151f97bc4f98c1d8d0f2b9fde5a4085d1..251cd09518c602916962b019bb0dad1496c950b5 100644 (file)
--- a/bufbn.c
+++ b/bufbn.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bufbn.c,v 1.5 2007/02/14 14:32:00 stevesk Exp $*/
+/* $OpenBSD: bufbn.c,v 1.6 2007/06/02 09:04:58 djm Exp $*/
 /*
  * Author: Tatu Ylonen <ylo@cs.hut.fi>
  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -201,12 +201,14 @@ buffer_get_bignum2_ret(Buffer *buffer, BIGNUM *value)
                return (-1);
        }
        if (len > 8 * 1024) {
-               error("buffer_get_bignum2_ret: cannot handle BN of size %d", len);
+               error("buffer_get_bignum2_ret: cannot handle BN of size %d",
+                   len);
                xfree(bin);
                return (-1);
        }
        if (BN_bin2bn(bin, len, value) == NULL) {
                error("buffer_get_bignum2_ret: BN_bin2bn failed");
+               xfree(bin);
                return (-1);
        }
        xfree(bin);
This page took 0.060418 seconds and 4 git commands to generate.