Revision b21f68b4 proto/rip/auth.c

View differences:

proto/rip/auth.c
39 39
  switch (ntohs(block->authtype)) {	/* Authentication type */
40 40
  case AT_PLAINTEXT: 
41 41
    {
42
      struct password_item *passwd = password_find(P_CF->passwords);
42
      struct password_item *passwd = password_find(P_CF->passwords, 1);
43 43
      DBG( "Plaintext passwd" );
44 44
      if (!passwd) {
45 45
	log( L_AUTH "No passwords set and password authentication came" );
......
115 115
int
116 116
rip_outgoing_authentication( struct proto *p, struct rip_block_auth *block, struct rip_packet *packet, int num )
117 117
{
118
  struct password_item *passwd = password_find( P_CF->passwords);
118
  struct password_item *passwd = password_find(P_CF->passwords, 1);
119 119

  
120 120
  if (!P_CF->authtype)
121 121
    return PACKETLEN(num);

Also available in: Unified diff