Lines Matching refs:NULL
78 static dns_sdlzimplementation_t *dlz_mysql = NULL;
88 #define safeGet(in) in == NULL ? "" : in
108 if (instr == NULL)
109 return NULL;
114 if (outstr == NULL)
115 return NULL;
124 * and client strings are passed in (or NULL is passed if the
138 dbinstance_t *dbi = NULL;
139 char *querystring = NULL;
145 REQUIRE(*rs == NULL);
147 REQUIRE(rs == NULL);
153 if (dbi == NULL) {
167 if (dbi->allnodes_q == NULL) {
174 if (dbi->allowxfr_q == NULL) {
181 if (dbi->authority_q == NULL) {
188 if (dbi->findzone_q == NULL) {
199 if (dbi->countzone_q == NULL) {
206 if (dbi->lookup_q == NULL) {
232 if (zone != NULL) {
235 if (dbi->zone == NULL) {
239 } else { /* no string passed, set the string pointer to NULL */
240 dbi->zone = NULL;
247 if (record != NULL) {
250 if (dbi->record == NULL) {
254 } else { /* no string passed, set the string pointer to NULL */
255 dbi->record = NULL;
262 if (client != NULL) {
265 if (dbi->client == NULL) {
269 } else { /* no string passed, set the string pointer to NULL */
270 dbi->client = NULL;
309 if (querystring == NULL) {
335 if (*rs == NULL)
346 /* if we couldn't even get DBI, just return NULL */
347 if (dbi == NULL)
351 if (dbi->zone != NULL)
355 if (dbi->record != NULL)
359 if (dbi->client != NULL)
363 if (querystring != NULL)
390 while (row != NULL) {
436 * allocate string memory, allow for NULL to
440 if (tmpString == NULL) {
509 MYSQL_RES *rs = NULL;
515 result = mysql_get_resultset(name, NULL, NULL, FINDZONE, dbdata, &rs);
517 if (result != ISC_R_SUCCESS || rs == NULL) {
518 if (rs != NULL)
533 mysql_get_resultset(name, NULL, NULL, COUNTZONE, dbdata, NULL);
547 MYSQL_RES *rs = NULL;
565 result = mysql_get_resultset(name, NULL, client, ALLOWXFR,
571 if (result != ISC_R_SUCCESS || rs == NULL) {
572 if (rs != NULL)
603 MYSQL_RES *rs = NULL;
615 result = mysql_get_resultset(zone, NULL, NULL, ALLNODES, dbdata, &rs);
621 if (rs != NULL)
634 while (row != NULL) {
663 /* allocate memory, allow for NULL to term string */
665 if (tmpString == NULL) { /* we need more ram. */
717 MYSQL_RES *rs = NULL;
722 result = mysql_get_resultset(zone, NULL, NULL, AUTHORITY, dbdata, &rs);
728 if (rs != NULL)
749 MYSQL_RES *rs = NULL;
754 result = mysql_get_resultset(zone, name, NULL, LOOKUP, dbdata, &rs);
757 if (rs != NULL)
783 dbinstance_t *dbi = NULL;
784 char *tmp = NULL;
785 char *dbname = NULL;
786 char *host = NULL;
787 char *user = NULL;
788 char *pass = NULL;
789 char *socket = NULL;
824 if (dbname == NULL) {
834 if (tmp == NULL) {
853 result = build_sqldbinstance(ns_g_mctx, NULL, NULL, NULL,
854 argv[2], argv[3], NULL, &dbi);
857 result = build_sqldbinstance(ns_g_mctx, NULL, NULL, argv[4],
858 argv[2], argv[3], NULL, &dbi);
861 result = build_sqldbinstance(ns_g_mctx, argv[5], NULL, argv[4],
862 argv[2], argv[3], NULL, &dbi);
867 argv[2], argv[3], NULL, &dbi);
890 dbi->dbconn = mysql_init(NULL);
893 if (dbi->dbconn == NULL) {
903 if (tmp != NULL) {
910 if (tmp != NULL) {
917 if (tmp != NULL) {
923 dbc = NULL;
940 for (j=0; dbc == NULL && j < 4; j++)
946 if (dbc == NULL) {
963 if (dbi != NULL)
968 if (dbname != NULL)
970 if (host != NULL)
972 if (user != NULL)
974 if (pass != NULL)
976 if (socket != NULL)
1000 if (dbi->dbconn != NULL)
1040 result = dns_sdlzregister("mysql", &dlz_mysql_methods, NULL,
1071 if (dlz_mysql != NULL)