Skip to content

Commit

Permalink
Merge pull request #381 from MahdiBaghbani/fix-new-interest-bug
Browse files Browse the repository at this point in the history
fix #365: ccnl-interest_new check for default max_pit_entries = -1 va…
  • Loading branch information
blacksheeep authored Mar 17, 2021
2 parents b3d6926 + eda48ea commit f125b9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ccnl-core/src/ccnl-interest.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ ccnl_interest_new(struct ccnl_relay_s *ccnl, struct ccnl_face_s *from,
i->from = from;
i->last_used = CCNL_NOW();

if (ccnl->pitcnt >= ccnl->max_pit_entries) {
if ((ccnl->max_pit_entries != -1) && (ccnl->pitcnt >= ccnl->max_pit_entries)) {
ccnl_pkt_free(i->pkt);
ccnl_free(i);
return NULL;
Expand Down

0 comments on commit f125b9f

Please sign in to comment.