Fixed invalid access in coap_option_next()

This commit is contained in:
Olaf Bergmann committed 2011-07-28 18:45:30 +02:00
1 parent 6b9c59fc35
commit 74c150654f
1 file changed
+4
+4
View File
@@ -55,6 +55,10 @@ coap_option_next(coap_opt_iterator_t *oi) {
|| coap_option_getb(oi->filter, oi->type) == 0)) {
oi->n++;
oi->option = options_next(oi->option);
if (oi->n > oi->optcnt)
break;
oi->type += COAP_OPT_DELTA(oi->option);
}