TLS: Fix X.509 certificate name conversion into empty string
If none of the supported name attributes are present, the name string was nul terminated only at the end. Add an explicit nul termination at the end of the last written (or beginning of the buffer, if nothing is written) to avoid writing uninitialized data to debug log. Signed-off-by: Jouni Malinen <j@w1.fi>master
parent
3eae9766b7
commit
62269c8d8d
Loading…
Reference in New Issue