the htab_find() routines doesn't return a hash index, it returns a value associated to a key (or -1 on failure).