Skip to content
This repository has been archived by the owner on Jun 24, 2023. It is now read-only.

Commit

Permalink
Update minica.c
Browse files Browse the repository at this point in the history
Fixed possible one-byte overwrite if the serial length is null
  • Loading branch information
hugsy committed Mar 30, 2016
1 parent 4bb0e8d commit 5eaaf2a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion minica.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ static void print_cert_serial(proxenet_ssl_buf_t serial)
m = alloca(l*3 + 1);
proxenet_xzero(m, l*3 + 1);
for(i=0; i<l; i++) sprintf(&m[i*3], "%.2x:", s[i]);
m[l*3-1] = '\x00';
xlog(LOG_INFO, "Serial is '%s' (len=%u)\n", m, l);
return;
}
Expand Down

0 comments on commit 5eaaf2a

Please sign in to comment.