Fix error handling in be_tls_open_server()

Поиск
Список
Период
Сортировка
От Sergey Shinderuk
Тема Fix error handling in be_tls_open_server()
Дата
Msg-id 8db5374d-32e0-6abb-d402-40762511eff2@postgrespro.ru
обсуждение исходный текст
Ответы Re: Fix error handling in be_tls_open_server()  (Daniel Gustafsson <daniel@yesql.se>)
Список pgsql-hackers
Hi,

A static analyzer reported a possible pfree(NULL) in 
be_tls_open_server(). Here is a fix. Also handle an error from 
X509_NAME_print_ex().

AFAICS, the error "SSL certificate's distinguished name contains 
embedded null" could not be reached at all, because XN_FLAG_RFC2253 
passed to X509_NAME_print_ex() ensures that null bytes are escaped.

Best regards,

-- 
Sergey Shinderuk        https://postgrespro.com/
Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Tristan Partin"
Дата:
Сообщение: Re: BUG #17946: LC_MONETARY & DO LANGUAGE plperl - BUG
Следующее
От: Robert Haas
Дата:
Сообщение: Re: pgsql: Fix search_path to a safe value during maintenance operations.