Fix wrong while() cond in hdb_get().
C wrapper.