mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-27 15:54:22 +02:00
upstream: minleft and maxsign are u_int so cast appropriately. Prompted
by github PR#410, ok deraadt. OpenBSD-Commit-ID: 0514cd51db3ec60239966622a0d3495b15406ddd
This commit is contained in:
parent
94842bfe9b
commit
7e8800f5d7
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: ssh-add.c,v 1.167 2023/03/08 00:05:58 djm Exp $ */
|
/* $OpenBSD: ssh-add.c,v 1.168 2023/07/06 22:17:59 dtucker Exp $ */
|
||||||
/*
|
/*
|
||||||
* Author: Tatu Ylonen <ylo@cs.hut.fi>
|
* Author: Tatu Ylonen <ylo@cs.hut.fi>
|
||||||
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
|
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
|
||||||
@ -863,7 +863,7 @@ main(int argc, char **argv)
|
|||||||
confirm = 1;
|
confirm = 1;
|
||||||
break;
|
break;
|
||||||
case 'm':
|
case 'm':
|
||||||
minleft = (int)strtonum(optarg, 1, UINT_MAX, NULL);
|
minleft = (u_int)strtonum(optarg, 1, UINT_MAX, NULL);
|
||||||
if (minleft == 0) {
|
if (minleft == 0) {
|
||||||
usage();
|
usage();
|
||||||
ret = 1;
|
ret = 1;
|
||||||
@ -871,7 +871,7 @@ main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'M':
|
case 'M':
|
||||||
maxsign = (int)strtonum(optarg, 1, UINT_MAX, NULL);
|
maxsign = (u_int)strtonum(optarg, 1, UINT_MAX, NULL);
|
||||||
if (maxsign == 0) {
|
if (maxsign == 0) {
|
||||||
usage();
|
usage();
|
||||||
ret = 1;
|
ret = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user