rand_bn: fix call to zeromem()
This commit is contained in:
		
							parent
							
								
									ca42862d52
								
							
						
					
					
						commit
						03385a4419
					
				@ -44,7 +44,7 @@ int rand_bn_bits(void *N, int bits, prng_state *prng, int wprng)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
cleanup:
 | 
					cleanup:
 | 
				
			||||||
#ifdef LTC_CLEAN_STACK
 | 
					#ifdef LTC_CLEAN_STACK
 | 
				
			||||||
   zeromem(buf, len);
 | 
					   zeromem(buf, bytes);
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
   XFREE(buf);
 | 
					   XFREE(buf);
 | 
				
			||||||
   return res;
 | 
					   return res;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user