mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-01-31 08:25:22 +00:00
you guessed it, more catching corrupt hlr dramas
This commit is contained in:
parent
d9163053d3
commit
613d542061
@ -243,6 +243,7 @@ int hlrGetRecordLength(unsigned char *hlr,int hofs)
|
|||||||
|
|
||||||
if (record_length<0) {
|
if (record_length<0) {
|
||||||
// fix corrupt entries
|
// fix corrupt entries
|
||||||
|
if (debug>2) fprintf(stderr,"HLR record @ 0x%x ZEROED.\n",hofs,record_length);
|
||||||
hlr[hofs+3]=0;
|
hlr[hofs+3]=0;
|
||||||
hlr[hofs+2]=0;
|
hlr[hofs+2]=0;
|
||||||
hlr[hofs+1]=0;
|
hlr[hofs+1]=0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user