NETLOGON: Fix bugs with netlogon decryption not working in some cases

If there is only one Authenticatex in the file, decryption is not
working.

from Matthieu Patou <mat@matws.net>

svn path=/trunk/; revision=40960
This commit is contained in:
Ronnie Sahlberg 2012-02-11 02:09:20 +00:00
parent 7a8e42888b
commit 4d2cb8bf94

View file

@ -2538,11 +2538,12 @@ netlogon_dissect_netrserverreqchallenge_rqst(tvbuff_t *tvb, int offset,
g_hash_table_insert(netlogon_auths, key, vars);
}
else {
while(existing_vars->next != NULL && existing_vars->start <= vars->start) {
while(existing_vars->next != NULL && existing_vars->start < vars->start) {
debugprintf("Looping to find existing vars ...\n");
existing_vars = existing_vars->next;
}
if(existing_vars->next != NULL || existing_vars == vars) {
debugprintf("It seems that I already record this vars %d\n",vars->start);
if(existing_vars->next != NULL || existing_vars->start == vars->start) {
debugprintf("It seems that I already record this vars start packet = %d\n",vars->start);
}
else {
debugprintf("Adding a new entry with this start packet = %d\n",vars->start);