Using oid_ent_to_oid used instead of the non thread-safe oid_getoidbyent.