From: Adam Dickmeiss Date: Wed, 21 May 2014 11:56:25 +0000 (+0200) Subject: zoom: fix invalid present response in some cases MP-546 X-Git-Tag: v1.5.2~2 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=dcb3c31dc44aa5b29981d1accf6ed23190f1c3f9;p=metaproxy-moved-to-github.git zoom: fix invalid present response in some cases MP-546 --- diff --git a/src/filter_zoom.cpp b/src/filter_zoom.cpp index 5a44469..e2145a5 100644 --- a/src/filter_zoom.cpp +++ b/src/filter_zoom.cpp @@ -1764,7 +1764,7 @@ Z_Records *yf::Zoom::Frontend::get_records(mp::Package &package, npl->num_records = i; npl->records = (Z_NamePlusRecord **) odr_malloc(odr, i * sizeof(*npl->records)); - for (i = 0; i < number_to_present; i++) + for (i = 0; i < npl->num_records; i++) { Z_NamePlusRecord *npr = 0; const char *addinfo;