find_elem(olddata=NULL) doesn't work reliably for existence checks; it will return NULL both when the field is found at offset 0 and when it is not found at all.
find_elem(olddata=NULL) doesn't work reliably for existence checks; it will return NULL both when the field is found at offset 0 and when it is not found at all.