diff --git a/dpi/file.cc b/dpi/file.cc index 71d2212..fcf41b3 100644 --- a/dpi/file.cc +++ b/dpi/file.cc @@ -893,7 +893,7 @@ static ClientInfo *File_add_client(int sock_fd) { ClientInfo *new_client; - new_client = dNew(ClientInfo, 1); + new_client = new ClientInfo; new_client->sh = a_Dpip_dsh_new(sock_fd, sock_fd, 8*1024); new_client->orig_url = NULL; new_client->filename = NULL; @@ -906,6 +906,7 @@ static ClientInfo *File_add_client(int sock_fd) new_client->old_style = OLD_STYLE; dList_append(Clients, new_client); + return new_client; }