Lines Matching refs:NULL

117 	(char *)NULL
124 (char *)NULL
130 (char *)NULL
143 (char *)NULL
208 * request. A NULL ptr = delete the object.
223 LDAP *ld = NULL;
224 uchar_t *printerDN = NULL;
225 uchar_t *domainDN = NULL;
226 char *printerName = NULL;
227 ns_cred_t *cred = NULL;
228 char **attrList = NULL;
237 if ((printer != NULL) &&
238 (printer->attributes == NULL) && (printer->name != NULL))
244 if (printer->nsdata != NULL)
252 if ((result == NSL_OK) && (ld != NULL))
259 if (cred->domainDN != NULL)
282 _constructPrinterDN(NULL,
284 if (printerDN != NULL)
297 if (attrList == NULL)
354 if (printerDN != NULL)
358 if (domainDN != NULL)
399 * Output: LDAP** - ldap connection descriptor pointer. NULL = failed
421 if ((ld == NULL) || (cred == NULL) ||
422 ((cred->passwd == NULL) || (cred->binddn == NULL)))
429 *ld = NULL;
433 if (cred->host != NULL)
450 if (*ld == NULL)
489 _manageReferralCredentials, NULL);
494 *ld = NULL;
534 uchar_t *dn = NULL;
535 uchar_t *uri = NULL;
536 char **p = NULL;
543 for (p = attrList; (p != NULL) && (*p != NULL) && (uri == NULL); p++)
557 if (domainDN != NULL) {
562 if ((uri == NULL) && (printerName != NULL))
572 if ((dn = malloc(size)) != NULL)
577 if (uri != NULL)
587 if ((dn = malloc(size)) != NULL)
635 LDAPMessage *ldapMsg = NULL;
636 char *requiredAttrs[2] = { ATTR_PNAME, NULL };
637 LDAPMessage *ldapEntry = NULL;
638 uchar_t *filter = NULL;
639 uchar_t *baseDN = NULL;
643 if ((printerName != NULL) && (domainDN != NULL) && (printerDN != NULL))
647 if (printerDN != NULL)
649 *printerDN = NULL;
657 if ((filter = malloc(size)) != NULL)
663 if ((baseDN = malloc(size)) != NULL)
674 if (ldapEntry != NULL)
679 if (printerDN != NULL)
726 char *requiredAttrs[2] = { ATTR_PNAME, NULL };
731 if ((ld != NULL) && (objectDN != NULL))
741 if (ldapEntry != NULL)
786 char *requiredAttrs[2] = { ATTR_PNAME, NULL };
787 LDAPMessage *ldapMsg = NULL;
788 LDAPMessage *ldapEntry = NULL;
789 char *filter = NULL;
793 if ((ld != NULL) && (printerDN != NULL))
800 if ((filter = malloc(size)) != NULL)
812 if (ldapEntry != NULL)
865 uchar_t *printerDN = NULL;
866 LDAPMod **attrs = NULL;
870 if ((ld != NULL) && (printerName != NULL) && (domainDN != NULL) &&
871 (attrList != NULL) && (attrList[0] != NULL))
883 if (printerDN != NULL)
962 uchar_t *uriDN = NULL;
963 LDAPMod **attrs = NULL;
964 char **kvpList = NULL;
968 if ((ld != NULL) && (printerDN != NULL) && (printerName != NULL) &&
969 (domainDN != NULL) && (attrList != NULL) && (attrList[0] != NULL))
981 uriDN = _constructPrinterDN(NULL, domainDN, attrList);
987 if ((uriDN == NULL) || ((uriDN != NULL) &&
1008 if ((result == NSL_OK) && (attrs != NULL))
1037 if (uriDN != NULL)
1073 char *attr = NULL;
1074 char **p = NULL;
1078 for (p = list; (p != NULL) && (*p != NULL) && (result == NSL_OK); p++)
1153 if ((attrs != NULL) && (type != NULL) && (value != NULL))
1160 for (i = 0; *attrs != NULL && (*attrs)[i] != NULL; i++)
1168 if (*attrs == NULL)
1173 if (*attrs != NULL)
1184 if ((*attrs)[i] == NULL)
1188 if (*attrs == NULL)
1201 if ((*attrs)[i] == NULL)
1206 if ((*attrs)[i] != NULL)
1212 if ((*attrs)[i]->mod_values != NULL)
1216 (*attrs)[i]->mod_values[1] = NULL;
1217 (*attrs)[i+1] = NULL;
1234 for (j = 0; (*attrs)[i]->mod_values[j] != NULL; j++);
1239 if ((*attrs)[i]->mod_values != NULL)
1242 (*attrs)[i]->mod_values[j+1] = NULL;
1288 if ((attrs != NULL) && (type != NULL))
1291 if (value != NULL)
1298 for (i = 0; *attrs != NULL && (*attrs)[i] != NULL; i++)
1306 if (*attrs == NULL)
1311 if (*attrs != NULL)
1322 if ((*attrs)[i] == NULL)
1328 if (*attrs == NULL)
1341 if ((*attrs)[i] == NULL)
1346 if (((*attrs)[i] != NULL) && (value != NULL))
1354 if ((*attrs)[i]->mod_values != NULL)
1358 (*attrs)[i]->mod_values[1] = NULL;
1359 (*attrs)[i+1] = NULL;
1367 if ((*attrs)[i] != NULL)
1373 (*attrs)[i]->mod_values = NULL;
1374 (*attrs)[i+1] = NULL;
1386 if (value != NULL)
1393 (*attrs)[i]->mod_values[j] != NULL; j++);
1398 if ((*attrs)[i]->mod_values != NULL)
1402 (*attrs)[i]->mod_values[j+1] = NULL;
1425 if ((*attrs)[i]->mod_values != NULL)
1428 (*attrs)[i]->mod_values[j] != NULL;
1435 (*attrs)[i]->mod_values = NULL;
1474 char **p = NULL;
1475 char *value = NULL;
1476 char *attr = NULL;
1480 if ((printerName != NULL) &&
1481 ((attrList != NULL) && (attrList[0] != NULL)) && (attrs != NULL))
1483 *attrs = NULL;
1517 (p != NULL) && (*p != NULL) && (result == NSL_OK); p++)
1561 if ((result != NSL_OK) && (*attrs != NULL))
1564 attrs = NULL;
1610 char **p = NULL;
1611 char *value = NULL;
1612 char *attr = NULL;
1616 if ((printerName != NULL) &&
1617 ((attrList != NULL) && (attrList[0] != NULL)) && (attrs != NULL))
1619 *attrs = NULL;
1621 if ((oldKVPList != NULL) && (*oldKVPList != NULL))
1650 (p != NULL) && (*p != NULL) && (result == NSL_OK); p++)
1724 ATTR_BSDADDR, NULL);
1739 attr, NULL);
1751 if ((result != NSL_OK) && (*attrs != NULL))
1754 *attrs = NULL;
1797 uchar_t *DN1 = NULL;
1798 uchar_t *DN2 = NULL;
1799 char *p1 = NULL;
1800 char *p2 = NULL;
1804 if ((dn1 != NULL) && (dn2 != NULL))
1813 while ((p1 != NULL) && (*p1 != ',') && (p1 >= (char *)DN1))
1820 while ((p2 != NULL) && (*p2 != ',') && (p2 >= (char *)DN2))
1887 uchar_t *domainDN = NULL;
1888 char *cp = NULL;
1895 if ((cp = strstr(buf, DNID)) != NULL)
1900 if ((cp = strchr((char *)domainDN, '\n')) != NULL)
1945 if ((cmd != NULL) && (buffer != NULL) && (size != 0))
1951 if ((fptr = popen(safe_cmd, "r")) != NULL)
1953 while ((fgets(linebuf, BUFSIZ, fptr) != NULL) &&
2003 if ((attr != NULL) && (list != NULL))
2005 for (j = 0; (list[j] != NULL) && (result != 1); j++)
2095 char *requiredAttrs[2] = { ATTR_KVP, NULL };
2096 LDAPMessage *ldapEntry = NULL;
2097 char *entryAttrib = NULL;
2098 char **attribValues = NULL;
2099 BerElement *berElement = NULL;
2103 if ((list != NULL) && (ld != NULL) && (objectDN != NULL))
2116 if (ldapEntry != NULL)
2120 if ((entryAttrib != NULL) &&
2134 attribValues[i] != NULL; i++)
2146 if ((entryAttrib != NULL) &&
2147 (berElement != NULL))
2195 if (list != NULL)
2197 if (*list != NULL)
2199 for (i = 0; (*list)[i] != NULL; i++)
2206 *list = NULL;
2254 char *key = NULL;
2255 char **p = NULL;
2256 char **newList = NULL;
2260 if ((value != NULL) && (kvpList != NULL))
2279 if ((*kvpList != NULL) && (**kvpList != NULL))
2284 for (p = *kvpList; *p != NULL; p++)
2315 if ((newList != NULL) || (inList))
2362 if (attrs != NULL)
2364 if (kvpList != NULL)
2366 while ((kvpList != NULL) && (*kvpList != NULL))
2383 result = _modLDAPmodValue(attrs, ATTR_KVP, NULL);
2424 static char *sDN = NULL;
2425 static char *sPasswd = NULL;
2434 if ((dn != NULL) && (*dn != NULL))
2439 if ((credp != NULL) && (*credp != NULL))
2446 if ((ld != NULL) &&
2447 (dn != NULL) && (credp != NULL) && (methodp != NULL))
2449 if ((freeit == 0) && (sDN != NULL) && (sPasswd != NULL))