mirror of https://github.com/openssl/openssl.git
				
				
				
			Fix usage of ossl_assert()
Reviewed-by: Andy Polyakov <appro@openssl.org> GH: #6044
This commit is contained in:
		
							parent
							
								
									198a2ed791
								
							
						
					
					
						commit
						5b820d785d
					
				|  | @ -206,7 +206,8 @@ static size_t sysctl_random(char *buf, size_t buflen) | ||||||
|      * the sysctl returns long and we want to request something not a multiple |      * the sysctl returns long and we want to request something not a multiple | ||||||
|      * of longs, which should never be the case. |      * of longs, which should never be the case. | ||||||
|      */ |      */ | ||||||
|     ossl_assert(buflen % sizeof(long) == 0); |     if (!ossl_assert(buflen % sizeof(long) == 0)) | ||||||
|  |         return 0; | ||||||
| 
 | 
 | ||||||
|     mib[0] = CTL_KERN; |     mib[0] = CTL_KERN; | ||||||
|     mib[1] = KERN_ARND; |     mib[1] = KERN_ARND; | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue