Lines Matching defs:NULL

208 	if (pg != NULL)
210 if (inst != NULL)
212 if (s != NULL)
214 if (h != NULL)
222 if ((*h = scf_handle_create(SCF_VERSION)) == NULL)
226 ilbd_scf_destroy(*h, NULL, NULL, NULL);
230 if ((*svc = scf_service_create(*h)) == NULL) {
231 ilbd_scf_destroy(*h, NULL, NULL, NULL);
235 if (scf_handle_decode_fmri(*h, ILBD_SVC_FMRI, NULL, *svc, NULL, NULL,
236 NULL, SCF_DECODE_FMRI_EXACT) != 0) {
237 ilbd_scf_destroy(*h, *svc, NULL, NULL);
241 if ((*inst = scf_instance_create(*h)) == NULL) {
242 ilbd_scf_destroy(*h, *svc, NULL, NULL);
247 ilbd_scf_destroy(*h, *svc, *inst, NULL);
273 if (*pg == NULL)
280 *pg = NULL;
290 ilbd_scf_destroy(NULL, svc, inst, NULL);
302 *pg = NULL;
311 ilbd_scf_destroy(NULL, svc, inst, NULL);
409 ipverstr = strtok(NULL, ";");
410 portstr = strtok(NULL, ";");
411 flagstr = strtok(NULL, ";");
413 if (ipaddr == NULL || ipverstr == NULL || portstr == NULL ||
414 flagstr == NULL) {
422 if (inet_pton(ip_ver, ipaddr, addrptr) == NULL) {
437 max_portstr = strtok(NULL, "-");
438 if (max_portstr != NULL) {
475 ilbd_srv_t *tmp_srv = NULL;
478 if (tmp_srv == NULL)
484 assert(tmp_srv != NULL);
485 if (valstr != NULL)
488 if (svrname != NULL) {
507 if (scftype != NULL)
522 * will be returned in "scftype" if scftype != NULL, the number of values
531 scf_value_t *v, **varray = NULL;
535 char *valstr = NULL;
538 ilbd_rule_t *r_ent = NULL;
539 ilbd_sg_t *s_ent = NULL;
540 ilbd_hc_t *h_ent = NULL;
555 if (v == NULL)
558 if ((valstr = malloc(scf_val_len)) == NULL)
651 if (varray == NULL) {
658 if (v == NULL) {
665 ret = ilbd_get_svr_info(s_ent, i, valstr, NULL);
723 if (varray == NULL) {
741 scf_propertygroup_t *pg = NULL;
778 if ((scfpgbuf = malloc(scf_name_len)) == NULL)
802 ret = ilbd_get_svr_info(data, j, NULL,
821 ilbd_scf_destroy(h, NULL, NULL, pg);
845 if ((scfname = malloc(scf_name_len)) == NULL)
854 ilbd_scf_destroy(scf_pg_handle(pg), NULL, NULL, pg);
866 scf_handle_t *h = NULL;
867 scf_property_t *prop = NULL;
868 scf_value_t *oldval = NULL;
869 scf_transaction_t *tx = NULL;
870 scf_transaction_entry_t *ent = NULL;
876 if (h == NULL || propname == NULL)
880 if (oldval != NULL)
887 if ((prop = scf_property_create(h)) == NULL)
889 if ((tx = scf_transaction_create(h)) == NULL ||
890 (ent = scf_entry_create(h)) == NULL) {
940 if (tx != NULL)
942 if (ent != NULL)
944 if (prop != NULL)
957 scf_handle_t *h = NULL;
958 scf_property_t *prop = NULL;
959 scf_value_t *value = NULL;
963 if (h == NULL || propname == NULL)
966 if ((prop = scf_property_create(h)) == NULL)
974 if ((value = scf_value_create(h)) == NULL) {
987 if (prop != NULL)
1035 ilb_rule_info_t *r_ent = NULL;
1036 ilb_sg_info_t *s_ent = NULL;
1037 ilb_hc_info_t *h_ent = NULL;
1057 if ((valstr = malloc(ILBD_MAX_VALUE_LEN)) == NULL)
1122 token2 = strtok(NULL, "-");
1265 if (h == NULL)
1280 if (val != NULL)
1299 char *prop_name = NULL;
1304 if (h == NULL)
1309 if (prop == NULL || propiter == NULL)
1315 if ((prop_name = malloc(scf_name_len)) == NULL) {
1330 if (prop_name != NULL)
1334 if (prop != NULL)
1336 if (propiter != NULL)
1356 char *pg_name = NULL;
1358 if (inst == NULL)
1362 if (h == NULL)
1365 if ((newpg = scf_pg_create(h)) == NULL)
1368 if ((pgiter = scf_iter_create(h)) == NULL) {
1376 if ((pg_name = malloc(scf_name_len)) == NULL) {
1392 data.hc_data = NULL;
1393 data.sg_data = NULL;
1394 data.rule_data = NULL;
1402 if (data.rule_data == NULL) {
1410 assert(data.rule_data != NULL);
1416 ret = cb(data.rule_data, port, arg2, NULL);
1427 if (data.sg_data == NULL) {
1437 assert(data.sg_data != NULL);
1442 ret = cb(data.sg_data, port, arg2, NULL);
1461 data.sg_data, port, NULL, NULL);
1475 if (data.hc_data == NULL) {
1483 assert(data.hc_data != NULL);
1488 ret = cb(data.hc_data, port, arg2, NULL);
1498 if (pg_name != NULL)
1526 ilbd_scf_destroy(h, svc, inst, NULL);
1545 ilbd_scf_destroy(h, svc, inst, NULL);
1564 ilbd_scf_destroy(h, svc, inst, NULL);
1573 scf_propertygroup_t *scfpg = NULL;
1574 char *scf_pgname = NULL;
1579 if ((scf_pgname = malloc(ILBD_MAX_NAME_LEN)) == NULL)
1588 assert(scfpg != NULL);
1591 if (h == NULL) {
1596 if ((scfval = scf_value_create(h)) == NULL) {
1611 if (scf_pg_handle(scfpg) != NULL)
1613 if (scfpg != NULL)
1615 if (scfval != NULL)
1632 char *buf = NULL;
1634 if ((buf = malloc(scf_name_len)) == NULL)
1652 if ((h = scf_pg_handle(pg)) == NULL) {
1653 ilbd_scf_destroy(NULL, NULL, NULL, pg);
1658 if ((val = scf_value_create(h)) == NULL) {
1659 ilbd_scf_destroy(h, NULL, NULL, pg);
1669 ilbd_scf_destroy(h, NULL, NULL, pg);
1687 scf_transaction_t *tx = NULL;
1688 scf_transaction_entry_t *entry = NULL;
1690 if ((buf = malloc(scf_name_len)) == NULL)
1705 if ((h = scf_pg_handle(pg)) == NULL) {
1708 ilbd_scf_destroy(NULL, NULL, NULL, pg);
1713 if ((tx = scf_transaction_create(h)) == NULL ||
1714 (entry = scf_entry_create(h)) == NULL) {
1743 if (entry != NULL)
1745 if (tx != NULL)
1747 ilbd_scf_destroy(h, NULL, NULL, pg);