Revision 8c6ce98b nest/password.c

View differences:

nest/password.c
54 54
int
55 55
password_same(struct password_item *old, struct password_item *new)
56 56
{
57
  if (old == new)
58
    return 1;
59
  if ((!old) || (!new))
60
    return 0;
61
  return ((old->from == new->from) &&
62
	  (old->to == new->to) &&
63
	  (old->passive == new->passive) &&
64
	  password_same(old, new));
57
  for(;;)
58
    {
59
      if (old == new)
60
	return 1;
61
      if (!old || !new)
62
	return 0;
63
      if (old->from    != new->from    ||
64
	  old->to      != new->to      ||
65
	  old->passive != new->passive ||
66
	  old->id      != new->id      ||
67
	  strcmp(old->password, new->password))
68
	return 0;
69
      old = old->next;
70
      new = new->next;
71
    }
65 72
}

Also available in: Unified diff