projects
/
debian
/
amanda
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 3.3.2
[debian/amanda]
/
common-src
/
security-util.c
diff --git
a/common-src/security-util.c
b/common-src/security-util.c
index 2e0c0d03fe78c7cf46215886e6f0c79c40b9df40..e3942e649f433492d843d9c4a1115bfb57ad2715 100644
(file)
--- 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 server_hostname;
}
amfree(server_hostname);
- return
"localhost"
;
+ return
strdup("localhost")
;
}
char *
}
char *
@@
-2682,5
+2682,5
@@
sec_get_authenticated_peer_name_hostname(
char *hostname = ((struct sec_handle *)hdl)->hostname;
if (!hostname)
hostname = "";
char *hostname = ((struct sec_handle *)hdl)->hostname;
if (!hostname)
hostname = "";
- return
hostname
;
+ return
strdup(hostname)
;
}
}