try to give a better error message (than a core dump :-) when talking
to an old kxd. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1727 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -250,8 +250,11 @@ doit_passive (char *host, char *user, int debugp, int keepalivep,
|
|||||||
err (1, "write to %s", host);
|
err (1, "write to %s", host);
|
||||||
len = read_encrypted (otherside, msg, sizeof(msg), &ret,
|
len = read_encrypted (otherside, msg, sizeof(msg), &ret,
|
||||||
schedule, &key, &him, &me);
|
schedule, &key, &him, &me);
|
||||||
if (len < 0)
|
if (len <= 0)
|
||||||
err (1, "read from %s", host);
|
errx (1,
|
||||||
|
"error reading initial message from %s: "
|
||||||
|
"this probably means it's using an old version.",
|
||||||
|
host);
|
||||||
p = (u_char *)ret;
|
p = (u_char *)ret;
|
||||||
if (*p == ERROR) {
|
if (*p == ERROR) {
|
||||||
p++;
|
p++;
|
||||||
|
Reference in New Issue
Block a user