Browse Source

Merge pull request #2665 from easyrider14/master

 cplc: permanent contact not skipped by lookup anymore
Daniel-Constantin Mierla 4 years ago
parent
commit
452d257d05
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/modules/cplc/cpl_run.c

+ 1 - 1
src/modules/cplc/cpl_run.c

@@ -283,7 +283,7 @@ static inline char *run_lookup( struct cpl_interpreter *intr )
 		} else {
 			contact = r->contacts;
 			/* skip expired contacts */
-			while ((contact) && (contact->expires <= tc))
+			while ((contact) && (contact->expires > 0) && (contact->expires <= tc))
 				contact = contact->next;
 			/* any contacts left? */
 			if (contact) {