fixed crash if no plugin

This commit is contained in:
chombier 2001-06-18 09:10:57 +00:00
parent 0720692c3a
commit 3ed0ba3f2e
1 changed files with 4 additions and 1 deletions

View File

@ -378,8 +378,11 @@ short encrypt_suboption (tnParams **aedata, unsigned char *subbuffer, long suble
if (code->encryptok)
break;
}
if (!code)
if (!code) {
DisposePtr(*aedata);
*aedata = NULL;
return 0;
}
switch (code->authType)
{