add bug closure to changelog
[debian/amanda] / common-src / security-util.c
index 3a2e0564bb0aa6c037d429bc470bae9b4a3d1501..e3942e649f433492d843d9c4a1115bfb57ad2715 100644 (file)
@@ -988,6 +988,7 @@ bsd_recv_security_ok(
      */
     s = body;
     if (strncmp_const_skip(s, "SERVICE ", s, ch) == 0) {
+       ch=ch;
        serviceX = stralloc(s);
        serviceY = strtok(serviceX, "\n");
        if (serviceY)
@@ -2671,7 +2672,7 @@ sec_get_authenticated_peer_name_gethostname(
        return server_hostname;
     }
     amfree(server_hostname);
-    return "localhost";
+    return strdup("localhost");
 }
 
 char *
@@ -2681,5 +2682,5 @@ sec_get_authenticated_peer_name_hostname(
     char *hostname = ((struct sec_handle *)hdl)->hostname;
     if (!hostname)
        hostname = "";
-    return hostname;
+    return strdup(hostname);
 }