X-Git-Url: https://git.gag.com/?p=debian%2Famanda;a=blobdiff_plain;f=common-src%2Flocal-security.c;h=24016e7ed1efb7bc87780d0be09bcacdd866d357;hp=6a8b8a4da617eabf41e6299444afc4ec82349940;hb=b116e9366c7b2ea2c2eb53b0a13df4090e176235;hpb=fd48f3e498442f0cbff5f3606c7c403d0566150e diff --git a/common-src/local-security.c b/common-src/local-security.c index 6a8b8a4..24016e7 100644 --- a/common-src/local-security.c +++ b/common-src/local-security.c @@ -61,6 +61,7 @@ const security_driver_t local_security_driver = { "LOCAL", local_connect, sec_accept, + sec_get_authenticated_peer_name_localhost, sec_close, stream_sendpkt, stream_recvpkt, @@ -110,7 +111,7 @@ local_connect( auth_debug(1, _("local: local_connect: %s\n"), hostname); - rh = alloc(SIZEOF(*rh)); + rh = g_new0(struct sec_handle, 1); security_handleinit(&rh->sech, &local_security_driver); rh->hostname = NULL; rh->rs = NULL;