if doing command line encryption (-x), ignore prot commands in .netrc

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16161 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
2005-10-12 09:44:24 +00:00
parent 0ef51c20cf
commit 8e29e3cb6f

View File

@@ -256,7 +256,7 @@ next:
break;
case PROT:
token();
if(sec_request_prot(tokval) < 0)
if(doencrypt == 0 && sec_request_prot(tokval) < 0)
warnx("Unknown protection level \"%s\"", tokval);
break;
default: