Fix SEGV in SRU filter (bug #3495).
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 21 Jun 2010 11:14:04 +0000 (13:14 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 21 Jun 2010 11:14:04 +0000 (13:14 +0200)
commit9263a36f12d300b625f5dbf6aa2c0f118290e08c
tree4b863d79da918c9e74d10908697262544a771be9
parent3abd36b264b9b056aec68c7120f96c8fb8990405
Fix SEGV in SRU filter (bug #3495).

When the sru_z3950 filter received a non-surrogate diagnostic, it
produced an uninitialized SRU record list. This is fixed by this
commit by simply defaulting number of records in SRU record list to
0 (until all "good" records are received).
src/filter_sru_to_z3950.cpp