omapi segmentation fault in omapi release 4.2.6

Nils.Magnusson at Nils.Magnusson at
Tue Apr 1 09:15:30 UTC 2014


We have a program that supervises our IP pools by the use of omapi. If there exists a lease with an empty client host name (client-hostname ""; taken from dhcpd.leases) then omapi will cause a segmentation fault on:

-          line 65 in omapi/generic.c,   if (!omapi_data_string_cmp (name, g -> values [i] -> name)) {

If I add some code that first checks if g -> values [i] is non null then the code runs fine.

Is this a known problem?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the dhcp-users mailing list