mirror of https://github.com/openssl/openssl.git
				
				
				
			Fix errstr error code parsing
Error codes are printed in hex, and previous OpenSSL versions expected the error codes to be provided to errstr in hex. In 1.1.0, for some reason, it was expecting them to be decimal. Reviewed-by: Richard Levitte <levitte@openssl.org>
This commit is contained in:
		
							parent
							
								
									124cbe1887
								
							
						
					
					
						commit
						210ac68246
					
				|  | @ -111,7 +111,7 @@ int errstr_main(int argc, char **argv) | ||||||
| 
 | 
 | ||||||
|     ret = 0; |     ret = 0; | ||||||
|     for (argv = opt_rest(); *argv; argv++) { |     for (argv = opt_rest(); *argv; argv++) { | ||||||
|         if (!opt_ulong(*argv, &l)) |         if (sscanf(*argv, "%lx", &l) == 0) | ||||||
|             ret++; |             ret++; | ||||||
|         else { |         else { | ||||||
|             /* We're not really an SSL application so this won't auto-init, but
 |             /* We're not really an SSL application so this won't auto-init, but
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue