you guessed it, more catching corrupt hlr dramas

This commit is contained in:
gardners 2011-10-02 21:54:59 +10:30
parent d9163053d3
commit 613d542061

View File

@ -243,6 +243,7 @@ int hlrGetRecordLength(unsigned char *hlr,int hofs)
if (record_length<0) {
// fix corrupt entries
if (debug>2) fprintf(stderr,"HLR record @ 0x%x ZEROED.\n",hofs,record_length);
hlr[hofs+3]=0;
hlr[hofs+2]=0;
hlr[hofs+1]=0;