Fix SEGV bug in new overlay abbreviation code

This commit is contained in:
Andrew Bettison 2012-07-25 17:45:57 +09:30
parent d8fc9bd3c2
commit f2ddc00797
2 changed files with 2 additions and 2 deletions

View File

@ -450,7 +450,8 @@ int overlay_abbreviate_remember_index(int index_byte_count,unsigned char *sid_to
if (index_byte_count>1) index=(index<<8)|index_bytes[1];
/* Lookup sender's neighbour ID */
if (overlay_abbreviate_current_sender_id==-1) overlay_abbreviate_lookup_sender_id();
if (overlay_abbreviate_current_sender_id == -1 && overlay_abbreviate_lookup_sender_id() == -1)
return WHY("could not lookup neighbour ID of packet sender");
if (debug&DEBUG_OVERLAYABBREVIATIONS) {
DEBUGF("index=%d", index);

View File

@ -44,7 +44,6 @@ configure_servald_server() {
executeOk_servald config set debug.rhizome on
executeOk_servald config set debug.rhizometx on
executeOk_servald config set debug.rhizomerx on
executeOk_servald config set debug.abbreviations on
executeOk_servald config set server.respawn_on_signal off
executeOk_servald config set mdp.wifi.tick_ms 100
executeOk_servald config set mdp.selfannounce.ticks_per_full_address 1