Fix for bug emerged in openvpn conext.

This commit is contained in:
Andy Polyakov 2005-04-14 07:41:29 +00:00
parent 6424498226
commit 026bb0b96a

View File

@ -395,10 +395,10 @@ padlock_verify_context(struct padlock_cipher_data *cdata)
" jnc 1f\n"
" cmp %2,%1\n"
" je 1f\n"
" mov %2,%0\n"
" popfl\n"
" sub $4,%%esp\n"
"1: add $4,%%esp"
"1: add $4,%%esp\n"
" mov %2,%0"
:"+m"(padlock_saved_context)
: "r"(padlock_saved_context), "r"(cdata) : "cc");
}
@ -521,10 +521,10 @@ padlock_verify_context(void *cdata)
jnc skip
cmp ecx,padlock_saved_context
je skip
mov padlock_saved_context,ecx
popfd
sub esp,4
skip: add esp,4
mov padlock_saved_context,ecx
}
}