* fhandler_socket.cc (fhandler_socket::set_sun_path): Don't free
memory here. Allow NULL parameter.
This commit is contained in:
parent
e48947085c
commit
5cff62d656
@ -1,3 +1,8 @@
|
||||
2002-07-04 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* fhandler_socket.cc (fhandler_socket::set_sun_path): Don't free
|
||||
memory here. Allow NULL parameter.
|
||||
|
||||
2002-07-04 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* fhandler_socket.cc (fhandler_socket::dup): Add missing copy operation
|
||||
|
@ -1141,7 +1141,5 @@ fhandler_socket::set_close_on_exec (int val)
|
||||
void
|
||||
fhandler_socket::set_sun_path (const char *path)
|
||||
{
|
||||
if (sun_path)
|
||||
cfree (sun_path);
|
||||
sun_path = cstrdup (path);
|
||||
sun_path = path ? cstrdup (path) : NULL;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user