~ubuntu-branches/ubuntu/edgy/openssh/edgy

« back to all changes in this revision

Viewing changes to bufaux.c

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2005-10-31 07:46:44 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20051031074644-poik7e4un4723tr4
Tags: 1:4.2p1-5ubuntu1
Resynchronise with Debian.

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
 */
38
38
 
39
39
#include "includes.h"
40
 
RCSID("$OpenBSD: bufaux.c,v 1.35 2005/03/10 22:01:05 deraadt Exp $");
 
40
RCSID("$OpenBSD: bufaux.c,v 1.36 2005/06/17 02:44:32 djm Exp $");
41
41
 
42
42
#include <openssl/bn.h>
43
43
#include "bufaux.h"
154
154
        buf[0] = 0x00;
155
155
        /* Get the value of in binary */
156
156
        oi = BN_bn2bin(value, buf+1);
157
 
        if (oi != bytes-1) {
 
157
        if (oi < 0 || (u_int)oi != bytes - 1) {
158
158
                error("buffer_put_bignum2_ret: BN_bn2bin() failed: "
159
159
                    "oi %d != bin_size %d", oi, bytes);
160
160
                xfree(buf);