Browse Source

Merge pull request #2665 from easyrider14/master

 cplc: permanent contact not skipped by lookup anymore
Daniel-Constantin Mierla 4 năm trước cách đây
mục cha
commit
452d257d05
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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 {
 		} else {
 			contact = r->contacts;
 			contact = r->contacts;
 			/* skip expired contacts */
 			/* skip expired contacts */
-			while ((contact) && (contact->expires <= tc))
+			while ((contact) && (contact->expires > 0) && (contact->expires <= tc))
 				contact = contact->next;
 				contact = contact->next;
 			/* any contacts left? */
 			/* any contacts left? */
 			if (contact) {
 			if (contact) {