fprintf(stderr, " -P <proto> Use proto (tcp or udp) for transport.\n");
#endif
- exit(1);
+ exit(EXIT_FAILURE);
}
#define RESPOND_STATIC(_cmd) \
* We've skipped over the index attribute, and
* the index number should be available in attr.
*/
- vp = fr_pair_afrom_da(ctx, index_attr);
- if (!vp) _exit(1);
+ MEM(vp = fr_pair_afrom_da(ctx, index_attr));
vp->vp_uint32 = attr;
fr_pair_cursor_append(cursor, vp);
*/
if (fr_inet_pton_port(&conf->server_ipaddr, &conf->server_port, argv[1], -1, force_af, true, true) < 0) {
ERROR("%s", fr_strerror());
- exit(1);
+ exit(EXIT_FAILURE);
}
/*
ERROR("Incomplete dictionary: Missing definition for Extended-Attribute-1");
dict_error:
talloc_free(conf);
- exit(1);
+ exit(EXIT_FAILURE);
}
parent = fr_dict_attr_child_by_num(parent, FR_VENDOR_SPECIFIC);
if (!parent) {