]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: fix type of nid in type_bits_valid(); github PR#202 from
authordjm@openbsd.org <djm@openbsd.org>
Thu, 29 Oct 2020 03:01:18 +0000 (03:01 +0000)
committerDamien Miller <djm@mindrot.org>
Thu, 29 Oct 2020 03:03:03 +0000 (14:03 +1100)
github user thingsconnected

OpenBSD-Commit-ID: 769d2b040dec7ab32d323daf54b854dd5dcb5485

ssh-keygen.c

index 1603206206a8b1624945ba53f0425800fa1bf58b..303faee31e1d37360fb0cb82b902199cafc0c67d 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-keygen.c,v 1.422 2020/10/29 02:52:43 djm Exp $ */
+/* $OpenBSD: ssh-keygen.c,v 1.423 2020/10/29 03:01:18 djm Exp $ */
 /*
  * Author: Tatu Ylonen <ylo@cs.hut.fi>
  * Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -184,7 +184,7 @@ type_bits_valid(int type, const char *name, u_int32_t *bitsp)
                fatal("unknown key type %s", key_type_name);
        if (*bitsp == 0) {
 #ifdef WITH_OPENSSL
-               u_int nid;
+               int nid;
 
                switch(type) {
                case KEY_DSA: