- for (wmp = 0; wmp = chain_get_next(&echobase, wmp); ) {
- if (!memcmp(wmp->data, mp->data, wmp->size)) {
- cmsg_callback(mp, 0);
- return;
+ if (echocancel) {
+ for (wmp = 0; wmp = chain_get_next(&echobase, wmp); ) {
+ if (!memcmp(wmp->data, mp->data, wmp->size)) {
+ cmsg_callback(mp, 0);
+ return;
+ }