X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=common-src%2Fsecurity-util.c;fp=common-src%2Fsecurity-util.c;h=e3942e649f433492d843d9c4a1115bfb57ad2715;hb=109540caa4e37a3663b3dcfb9a205b9609e3f561;hp=2e0c0d03fe78c7cf46215886e6f0c79c40b9df40;hpb=4c9eba1feb11adf189bceb4001c425e641f0b56a;p=debian%2Famanda diff --git a/common-src/security-util.c b/common-src/security-util.c index 2e0c0d0..e3942e6 100644 --- a/common-src/security-util.c +++ b/common-src/security-util.c @@ -2672,7 +2672,7 @@ sec_get_authenticated_peer_name_gethostname( return server_hostname; } amfree(server_hostname); - return "localhost"; + return strdup("localhost"); } char * @@ -2682,5 +2682,5 @@ sec_get_authenticated_peer_name_hostname( char *hostname = ((struct sec_handle *)hdl)->hostname; if (!hostname) hostname = ""; - return hostname; + return strdup(hostname); }