I just noticed this warning whilst compiling CVS HEAD:

t1_lib.c: In function ‘tls1_lookup_sigalg’:
t1_lib.c:nnnn:16: warning: ‘hash_nid’ may be used uninitialized in this function
(Line number scrubbed 'cos I have local edits)

The uninitialized use of hash_nid seems to be in the function's last if statement: if (sign_nid && hash_nid)

I suggest:
- int sign_nid, hash_nid;
+ int sign_nid, hash_nid = 0;

Rob Stradling
Senior Research & Development Scientist
COMODO - Creating Trust Online
OpenSSL Project                       
Development Mailing List             
Automated List Manager                 

Reply via email to