Skip to content

Commit

Permalink
Refs #101062 add missing check for logging enabled before call to ccn…
Browse files Browse the repository at this point in the history
…d_debug_content()
  • Loading branch information
Nick Briggs committed Nov 22, 2013
1 parent c869334 commit 21d3580
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions csrc/ccnd/ccnd.c
Original file line number Diff line number Diff line change
Expand Up @@ -4468,7 +4468,8 @@ process_incoming_content(struct ccnd_handle *h, struct face *face,
}
else {
h->content_dups_recvd++;
ccnd_debug_content(h, __LINE__, "content_dup", face, content);
if (h->debug & 4)
ccnd_debug_content(h, __LINE__, "content_dup", face, content);
}
res = 0;
}
Expand Down Expand Up @@ -4514,7 +4515,8 @@ process_incoming_content(struct ccnd_handle *h, struct face *face,
return;
}
if (n_matches == 0 && (face->flags & CCN_FACE_GG) == 0) {
ccnd_debug_ccnb(h, __LINE__, "content_unsolicted", face, msg, size);
if (h->debug & 4)
ccnd_debug_content(h, __LINE__, "content_unsolicted", face, content);
mark_unsolicited(h, content);
}
}
Expand Down

0 comments on commit 21d3580

Please sign in to comment.