Fix for bug emerged in openvpn conext.
This commit is contained in:
parent
6424498226
commit
026bb0b96a
@ -395,10 +395,10 @@ padlock_verify_context(struct padlock_cipher_data *cdata)
|
|||||||
" jnc 1f\n"
|
" jnc 1f\n"
|
||||||
" cmp %2,%1\n"
|
" cmp %2,%1\n"
|
||||||
" je 1f\n"
|
" je 1f\n"
|
||||||
" mov %2,%0\n"
|
|
||||||
" popfl\n"
|
" popfl\n"
|
||||||
" sub $4,%%esp\n"
|
" sub $4,%%esp\n"
|
||||||
"1: add $4,%%esp"
|
"1: add $4,%%esp\n"
|
||||||
|
" mov %2,%0"
|
||||||
:"+m"(padlock_saved_context)
|
:"+m"(padlock_saved_context)
|
||||||
: "r"(padlock_saved_context), "r"(cdata) : "cc");
|
: "r"(padlock_saved_context), "r"(cdata) : "cc");
|
||||||
}
|
}
|
||||||
@ -521,10 +521,10 @@ padlock_verify_context(void *cdata)
|
|||||||
jnc skip
|
jnc skip
|
||||||
cmp ecx,padlock_saved_context
|
cmp ecx,padlock_saved_context
|
||||||
je skip
|
je skip
|
||||||
mov padlock_saved_context,ecx
|
|
||||||
popfd
|
popfd
|
||||||
sub esp,4
|
sub esp,4
|
||||||
skip: add esp,4
|
skip: add esp,4
|
||||||
|
mov padlock_saved_context,ecx
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user