X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=amandad-src%2Famandad.c;fp=amandad-src%2Famandad.c;h=11009d854ef405fbbfd443427c61e2bfba83e9ab;hb=109540caa4e37a3663b3dcfb9a205b9609e3f561;hp=e3f11a0f38465b5ccf97bad02694deb1310b1ccd;hpb=4c9eba1feb11adf189bceb4001c425e641f0b56a;p=debian%2Famanda diff --git a/amandad-src/amandad.c b/amandad-src/amandad.c index e3f11a0..11009d8 100644 --- a/amandad-src/amandad.c +++ b/amandad-src/amandad.c @@ -564,6 +564,7 @@ protocol_accept( char *service_path = NULL; GSList *errlist = NULL; int i; + char *peer_name; pkt_out.body = NULL; @@ -600,7 +601,9 @@ protocol_accept( return; } - g_debug("authenticated peer name is '%s'", security_get_authenticated_peer_name(handle)); + peer_name = security_get_authenticated_peer_name(handle); + g_debug("authenticated peer name is '%s'", peer_name); + amfree(peer_name); /* * If pkt is NULL, then there was a problem with the new connection.