Skip to content

Commit c639af2

Browse files
authored
Fix clearing the used bit in the aux data
I'm pretty sure the code is correct anyways, but still this should be cleaned up
1 parent d1f07e1 commit c639af2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hss_aux.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ struct expanded_aux_data *hss_expand_aux_data( const unsigned char *aux_data,
135135
const unsigned char *orig_aux_data = aux_data;
136136
unsigned long aux_level = get_bigendian( aux_data, 4 );
137137
aux_data += 4;
138-
aux_level &= 0x7ffffffffL; /* Turn off the 'used' marker */
138+
aux_level &= 0x7fffffffL; /* Turn off the 'used' marker */
139139

140140
unsigned h;
141141
for (h = 0; h <= MAX_MERKLE_HEIGHT; h++, aux_level >>= 1) {

0 commit comments

Comments
 (0)