X-Git-Url: https://git.gag.com/?p=debian%2Famanda;a=blobdiff_plain;f=common-src%2Fbsdudp-security.c;h=41ff9bfc056395f206f5b452175f2592860aa7a4;hp=cd265b3b47b5053e79c6e09bdbfce0bfab347bea;hb=b116e9366c7b2ea2c2eb53b0a13df4090e176235;hpb=fd48f3e498442f0cbff5f3606c7c403d0566150e diff --git a/common-src/bsdudp-security.c b/common-src/bsdudp-security.c index cd265b3..41ff9bf 100644 --- a/common-src/bsdudp-security.c +++ b/common-src/bsdudp-security.c @@ -63,6 +63,7 @@ const security_driver_t bsdudp_security_driver = { "BSDUDP", bsdudp_connect, bsdudp_accept, + sec_get_authenticated_peer_name_hostname, bsdudp_close, udpbsd_sendpkt, udp_recvpkt, @@ -120,7 +121,7 @@ bsdudp_connect( (void)datap; /* Quiet unused parameter warning */ assert(hostname != NULL); - bh = alloc(sizeof(*bh)); + bh = g_new0(struct sec_handle, 1); bh->proto_handle=NULL; bh->rc = NULL; security_handleinit(&bh->sech, &bsdudp_security_driver);