X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=common-src%2Fbsdtcp-security.c;h=25a32ac5c1165644b7004276017df2abbd3fb43a;hb=109540caa4e37a3663b3dcfb9a205b9609e3f561;hp=03906c9a03ed2fdcb2b53d610f5dd35486b808f1;hpb=fd48f3e498442f0cbff5f3606c7c403d0566150e;p=debian%2Famanda diff --git a/common-src/bsdtcp-security.c b/common-src/bsdtcp-security.c index 03906c9..25a32ac 100644 --- a/common-src/bsdtcp-security.c +++ b/common-src/bsdtcp-security.c @@ -66,6 +66,7 @@ const security_driver_t bsdtcp_security_driver = { "BSDTCP", bsdtcp_connect, bsdtcp_accept, + sec_get_authenticated_peer_name_hostname, sec_close, stream_sendpkt, stream_recvpkt, @@ -118,7 +119,7 @@ bsdtcp_connect( auth_debug(1, _("bsdtcp: bsdtcp_connect: %s\n"), hostname); - rh = alloc(sizeof(*rh)); + rh = g_new0(struct sec_handle, 1); security_handleinit(&rh->sech, &bsdtcp_security_driver); rh->hostname = NULL; rh->rs = NULL;