Skip to content

Commit

Permalink
Merge pull request #209 from OlegHahm/feature/init_default_opts
Browse files Browse the repository at this point in the history
ccnl-riot: initialize fields for default options
  • Loading branch information
blacksheeep authored Mar 13, 2018
2 parents bfd75a2 + 141dd56 commit 810d325
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ccnl-riot/src/ccn-lite-riot.c
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,9 @@ ccnl_send_interest(struct ccnl_prefix_s *prefix, unsigned char *buf, int buf_len
int ret = -1;
int len = 0;
ccnl_interest_opts_u default_opts;
default_opts.ndntlv.nonce = 0;
default_opts.ndntlv.mustbefresh = false;
default_opts.ndntlv.interestlifetime = CCNL_INTEREST_TIMEOUT;

if (_ccnl_suite != CCNL_SUITE_NDNTLV) {
DEBUGMSG(WARNING, "Suite not supported by RIOT!");
Expand Down

0 comments on commit 810d325

Please sign in to comment.