diff options
Diffstat (limited to 'src/cmd/auth')
-rw-r--r-- | src/cmd/auth/ssh-agent.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/auth/ssh-agent.c b/src/cmd/auth/ssh-agent.c index f8ded13d..beae7efe 100644 --- a/src/cmd/auth/ssh-agent.c +++ b/src/cmd/auth/ssh-agent.c @@ -950,7 +950,7 @@ runmsg(Aconn *a) ek = getmp(&m); mod = getmp(&m); chal = getmp(&m); - if((p = getn(&m, 16)) == nil){ + if((p = (char*)getn(&m, 16)) == nil){ Failchal: mpfree(ek); mpfree(mod); @@ -977,8 +977,8 @@ runmsg(Aconn *a) break; case SSH2_AGENTC_SIGN_REQUEST: - if(getm(&m, &mkey) < 0 - || getm(&m, &mdata) < 0) + if(getm(&m, &mkey) == nil + || getm(&m, &mdata) == nil) goto Failure; flags = get4(&m); if(flags & SSH_AGENT_OLD_SIGNATURE) |