[openssh-commits] [openssh] 01/03: upstream: Fix multiplier in convtime when handling seconds after
    git+noreply at mindrot.org 
    git+noreply at mindrot.org
       
    Fri May 29 13:28:52 AEST 2020
    
    
  
This is an automated email from the git hooks/post-receive script.
djm pushed a commit to branch master
in repository openssh.
commit 1001dd148ed7c57bccf56afb40cb77482ea343a6
Author: dtucker at openbsd.org <dtucker at openbsd.org>
Date:   Fri May 29 01:20:46 2020 +0000
    upstream: Fix multiplier in convtime when handling seconds after
    
    other units. bz#3171, spotted by ronf at timeheart.net, ok djm at .
    
    OpenBSD-Commit-ID: 95b7a848e1083974a65fbb6ccb381d438e1dd5be
---
 misc.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/misc.c b/misc.c
index 3e661ac7..5a34107f 100644
--- a/misc.c
+++ b/misc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: misc.c,v 1.148 2020/05/26 01:06:52 djm Exp $ */
+/* $OpenBSD: misc.c,v 1.149 2020/05/29 01:20:46 dtucker Exp $ */
 /*
  * Copyright (c) 2000 Markus Friedl.  All rights reserved.
  * Copyright (c) 2005-2020 Damien Miller.  All rights reserved.
@@ -487,7 +487,7 @@ a2tun(const char *s, int *remote)
 long
 convtime(const char *s)
 {
-	long total, secs, multiplier = 1;
+	long total, secs, multiplier;
 	const char *p;
 	char *endp;
 
@@ -505,6 +505,7 @@ convtime(const char *s)
 		    secs < 0)
 			return -1;
 
+		multiplier = 1;
 		switch (*endp++) {
 		case '\0':
 			endp--;
-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
    
    
More information about the openssh-commits
mailing list