Is this func correct?

Zheng Yuan {ZYUAN1} zyuan1 at cig.mot.com
Sat Jan 6 00:12:19 CET 2001


Hi, All

Maybe i totally miss the point, is this func correct: int
password_same(struct password_item *old, struct password_item *new) {
  if (old == new)
    return 1;
  if ((!old) || (!new))
    return 0;
  return ((old->from == new->from) &&
	  (old->to == new->to) &&
	  (old->passive == new->passive) &&
	  password_same(old, new));
}

or the last line should be 
  return ((old->from == new->from) &&
          (old->to == new->to) &&
          (old->passive == new->passive) &&
          password_same(old->next, new->next)); or compare old->password
with new->password




More information about the Bird-users mailing list