summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bin/rcp/rcp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/rcp/rcp.c b/bin/rcp/rcp.c
index 2e7b51729e9..e340f432ad2 100644
--- a/bin/rcp/rcp.c
+++ b/bin/rcp/rcp.c
@@ -860,7 +860,11 @@ oldw(fmt, va_alist)
va_dcl
#endif
{
+ char realm[REALM_SZ];
va_list ap;
+
+ if (krb_get_lrealm(realm, 1) != KSUCCESS)
+ return;
#if __STDC__
va_start(ap, fmt);
#else