Lines Matching refs:NULL

115 	(char *)NULL
122 (char *)NULL
128 (char *)NULL
141 (char *)NULL
221 LDAP *ld = NULL; in ldap_put_printer()
222 uchar_t *printerDN = NULL; in ldap_put_printer()
223 uchar_t *domainDN = NULL; in ldap_put_printer()
224 char *printerName = NULL; in ldap_put_printer()
225 ns_cred_t *cred = NULL; in ldap_put_printer()
226 char **attrList = NULL; in ldap_put_printer()
235 if ((printer != NULL) && in ldap_put_printer()
236 (printer->attributes == NULL) && (printer->name != NULL)) in ldap_put_printer()
242 if (printer->nsdata != NULL) in ldap_put_printer()
250 if ((result == NSL_OK) && (ld != NULL)) in ldap_put_printer()
257 if (cred->domainDN != NULL) in ldap_put_printer()
280 _constructPrinterDN(NULL, in ldap_put_printer()
282 if (printerDN != NULL) in ldap_put_printer()
295 if (attrList == NULL) in ldap_put_printer()
352 if (printerDN != NULL) in ldap_put_printer()
356 if (domainDN != NULL) in ldap_put_printer()
419 if ((ld == NULL) || (cred == NULL) || in _connectToLDAP()
420 ((cred->passwd == NULL) || (cred->binddn == NULL))) in _connectToLDAP()
427 *ld = NULL; in _connectToLDAP()
431 if (cred->host != NULL) in _connectToLDAP()
448 if (*ld == NULL) in _connectToLDAP()
484 &tmpMethod, -1, NULL); in _connectToLDAP()
486 _manageReferralCredentials, NULL); in _connectToLDAP()
491 *ld = NULL; in _connectToLDAP()
531 uchar_t *dn = NULL; in _constructPrinterDN()
532 uchar_t *uri = NULL; in _constructPrinterDN()
533 char **p = NULL; in _constructPrinterDN()
540 for (p = attrList; (p != NULL) && (*p != NULL) && (uri == NULL); p++) in _constructPrinterDN()
554 if (domainDN != NULL) { in _constructPrinterDN()
559 if ((uri == NULL) && (printerName != NULL)) in _constructPrinterDN()
569 if ((dn = malloc(size)) != NULL) in _constructPrinterDN()
574 if (uri != NULL) in _constructPrinterDN()
584 if ((dn = malloc(size)) != NULL) in _constructPrinterDN()
632 LDAPMessage *ldapMsg = NULL; in _checkPrinterExists()
633 char *requiredAttrs[2] = { ATTR_PNAME, NULL }; in _checkPrinterExists()
634 LDAPMessage *ldapEntry = NULL; in _checkPrinterExists()
635 uchar_t *filter = NULL; in _checkPrinterExists()
636 uchar_t *baseDN = NULL; in _checkPrinterExists()
640 if ((printerName != NULL) && (domainDN != NULL) && (printerDN != NULL)) in _checkPrinterExists()
644 if (printerDN != NULL) in _checkPrinterExists()
646 *printerDN = NULL; in _checkPrinterExists()
654 if ((filter = malloc(size)) != NULL) in _checkPrinterExists()
660 if ((baseDN = malloc(size)) != NULL) in _checkPrinterExists()
671 if (ldapEntry != NULL) in _checkPrinterExists()
676 if (printerDN != NULL) in _checkPrinterExists()
723 char *requiredAttrs[2] = { ATTR_PNAME, NULL }; in _checkPrinterDNExists()
728 if ((ld != NULL) && (objectDN != NULL)) in _checkPrinterDNExists()
738 if (ldapEntry != NULL) in _checkPrinterDNExists()
783 char *requiredAttrs[2] = { ATTR_PNAME, NULL }; in _checkSunPrinter()
784 LDAPMessage *ldapMsg = NULL; in _checkSunPrinter()
785 LDAPMessage *ldapEntry = NULL; in _checkSunPrinter()
786 char *filter = NULL; in _checkSunPrinter()
790 if ((ld != NULL) && (printerDN != NULL)) in _checkSunPrinter()
797 if ((filter = malloc(size)) != NULL) in _checkSunPrinter()
809 if (ldapEntry != NULL) in _checkSunPrinter()
862 uchar_t *printerDN = NULL; in _addNewPrinterObject()
863 LDAPMod **attrs = NULL; in _addNewPrinterObject()
867 if ((ld != NULL) && (printerName != NULL) && (domainDN != NULL) && in _addNewPrinterObject()
868 (attrList != NULL) && (attrList[0] != NULL)) in _addNewPrinterObject()
880 if (printerDN != NULL) in _addNewPrinterObject()
959 uchar_t *uriDN = NULL; in _modifyPrinterObject()
960 LDAPMod **attrs = NULL; in _modifyPrinterObject()
961 char **kvpList = NULL; in _modifyPrinterObject()
965 if ((ld != NULL) && (printerDN != NULL) && (printerName != NULL) && in _modifyPrinterObject()
966 (domainDN != NULL) && (attrList != NULL) && (attrList[0] != NULL)) in _modifyPrinterObject()
978 uriDN = _constructPrinterDN(NULL, domainDN, attrList); in _modifyPrinterObject()
984 if ((uriDN == NULL) || ((uriDN != NULL) && in _modifyPrinterObject()
1005 if ((result == NSL_OK) && (attrs != NULL)) in _modifyPrinterObject()
1034 if (uriDN != NULL) in _modifyPrinterObject()
1070 char *attr = NULL; in _checkAttributes()
1071 char **p = NULL; in _checkAttributes()
1075 for (p = list; (p != NULL) && (*p != NULL) && (result == NSL_OK); p++) in _checkAttributes()
1150 if ((attrs != NULL) && (type != NULL) && (value != NULL)) in _addLDAPmodValue()
1157 for (i = 0; *attrs != NULL && (*attrs)[i] != NULL; i++) in _addLDAPmodValue()
1165 if (*attrs == NULL) in _addLDAPmodValue()
1170 if (*attrs != NULL) in _addLDAPmodValue()
1181 if ((*attrs)[i] == NULL) in _addLDAPmodValue()
1185 if (*attrs == NULL) in _addLDAPmodValue()
1198 if ((*attrs)[i] == NULL) in _addLDAPmodValue()
1203 if ((*attrs)[i] != NULL) in _addLDAPmodValue()
1209 if ((*attrs)[i]->mod_values != NULL) in _addLDAPmodValue()
1213 (*attrs)[i]->mod_values[1] = NULL; in _addLDAPmodValue()
1214 (*attrs)[i+1] = NULL; in _addLDAPmodValue()
1231 for (j = 0; (*attrs)[i]->mod_values[j] != NULL; j++); in _addLDAPmodValue()
1236 if ((*attrs)[i]->mod_values != NULL) in _addLDAPmodValue()
1239 (*attrs)[i]->mod_values[j+1] = NULL; in _addLDAPmodValue()
1285 if ((attrs != NULL) && (type != NULL)) in _modLDAPmodValue()
1288 if (value != NULL) in _modLDAPmodValue()
1295 for (i = 0; *attrs != NULL && (*attrs)[i] != NULL; i++) in _modLDAPmodValue()
1303 if (*attrs == NULL) in _modLDAPmodValue()
1308 if (*attrs != NULL) in _modLDAPmodValue()
1319 if ((*attrs)[i] == NULL) in _modLDAPmodValue()
1325 if (*attrs == NULL) in _modLDAPmodValue()
1338 if ((*attrs)[i] == NULL) in _modLDAPmodValue()
1343 if (((*attrs)[i] != NULL) && (value != NULL)) in _modLDAPmodValue()
1351 if ((*attrs)[i]->mod_values != NULL) in _modLDAPmodValue()
1355 (*attrs)[i]->mod_values[1] = NULL; in _modLDAPmodValue()
1356 (*attrs)[i+1] = NULL; in _modLDAPmodValue()
1364 if ((*attrs)[i] != NULL) in _modLDAPmodValue()
1370 (*attrs)[i]->mod_values = NULL; in _modLDAPmodValue()
1371 (*attrs)[i+1] = NULL; in _modLDAPmodValue()
1383 if (value != NULL) in _modLDAPmodValue()
1390 (*attrs)[i]->mod_values[j] != NULL; j++); in _modLDAPmodValue()
1395 if ((*attrs)[i]->mod_values != NULL) in _modLDAPmodValue()
1399 (*attrs)[i]->mod_values[j+1] = NULL; in _modLDAPmodValue()
1422 if ((*attrs)[i]->mod_values != NULL) in _modLDAPmodValue()
1425 (*attrs)[i]->mod_values[j] != NULL; in _modLDAPmodValue()
1432 (*attrs)[i]->mod_values = NULL; in _modLDAPmodValue()
1471 char **p = NULL; in _constructAddLDAPMod()
1472 char *value = NULL; in _constructAddLDAPMod()
1473 char *attr = NULL; in _constructAddLDAPMod()
1477 if ((printerName != NULL) && in _constructAddLDAPMod()
1478 ((attrList != NULL) && (attrList[0] != NULL)) && (attrs != NULL)) in _constructAddLDAPMod()
1480 *attrs = NULL; in _constructAddLDAPMod()
1514 (p != NULL) && (*p != NULL) && (result == NSL_OK); p++) in _constructAddLDAPMod()
1558 if ((result != NSL_OK) && (*attrs != NULL)) in _constructAddLDAPMod()
1561 attrs = NULL; in _constructAddLDAPMod()
1607 char **p = NULL; in _constructModLDAPMod()
1608 char *value = NULL; in _constructModLDAPMod()
1609 char *attr = NULL; in _constructModLDAPMod()
1613 if ((printerName != NULL) && in _constructModLDAPMod()
1614 ((attrList != NULL) && (attrList[0] != NULL)) && (attrs != NULL)) in _constructModLDAPMod()
1616 *attrs = NULL; in _constructModLDAPMod()
1618 if ((oldKVPList != NULL) && (*oldKVPList != NULL)) in _constructModLDAPMod()
1647 (p != NULL) && (*p != NULL) && (result == NSL_OK); p++) in _constructModLDAPMod()
1721 ATTR_BSDADDR, NULL); in _constructModLDAPMod()
1736 attr, NULL); in _constructModLDAPMod()
1748 if ((result != NSL_OK) && (*attrs != NULL)) in _constructModLDAPMod()
1751 *attrs = NULL; in _constructModLDAPMod()
1794 uchar_t *DN1 = NULL; in _compareURIinDNs()
1795 uchar_t *DN2 = NULL; in _compareURIinDNs()
1796 char *p1 = NULL; in _compareURIinDNs()
1797 char *p2 = NULL; in _compareURIinDNs()
1801 if ((dn1 != NULL) && (dn2 != NULL)) in _compareURIinDNs()
1810 while ((p1 != NULL) && (*p1 != ',') && (p1 >= (char *)DN1)) in _compareURIinDNs()
1817 while ((p2 != NULL) && (*p2 != ',') && (p2 >= (char *)DN2)) in _compareURIinDNs()
1884 uchar_t *domainDN = NULL; in _getThisNSDomainDN()
1885 char *cp = NULL; in _getThisNSDomainDN()
1892 if ((cp = strstr(buf, DNID)) != NULL) in _getThisNSDomainDN()
1897 if ((cp = strchr((char *)domainDN, '\n')) != NULL) in _getThisNSDomainDN()
1942 if ((cmd != NULL) && (buffer != NULL) && (size != 0)) in _popen()
1948 if ((fptr = popen(safe_cmd, "r")) != NULL) in _popen()
1950 while ((fgets(linebuf, BUFSIZ, fptr) != NULL) && in _popen()
2000 if ((attr != NULL) && (list != NULL)) in _attrInList()
2002 for (j = 0; (list[j] != NULL) && (result != 1); j++) in _attrInList()
2092 char *requiredAttrs[2] = { ATTR_KVP, NULL }; in _getCurrentKVPValues()
2093 LDAPMessage *ldapEntry = NULL; in _getCurrentKVPValues()
2094 char *entryAttrib = NULL; in _getCurrentKVPValues()
2095 char **attribValues = NULL; in _getCurrentKVPValues()
2096 BerElement *berElement = NULL; in _getCurrentKVPValues()
2100 if ((list != NULL) && (ld != NULL) && (objectDN != NULL)) in _getCurrentKVPValues()
2113 if (ldapEntry != NULL) in _getCurrentKVPValues()
2117 if ((entryAttrib != NULL) && in _getCurrentKVPValues()
2131 attribValues[i] != NULL; i++) in _getCurrentKVPValues()
2143 if ((entryAttrib != NULL) && in _getCurrentKVPValues()
2144 (berElement != NULL)) in _getCurrentKVPValues()
2192 if (list != NULL) in _freeList()
2194 if (*list != NULL) in _freeList()
2196 for (i = 0; (*list)[i] != NULL; i++) in _freeList()
2203 *list = NULL; in _freeList()
2251 char *key = NULL; in _modAttrKVP()
2252 char **p = NULL; in _modAttrKVP()
2253 char **newList = NULL; in _modAttrKVP()
2257 if ((value != NULL) && (kvpList != NULL)) in _modAttrKVP()
2276 if ((*kvpList != NULL) && (**kvpList != NULL)) in _modAttrKVP()
2281 for (p = *kvpList; *p != NULL; p++) in _modAttrKVP()
2312 if ((newList != NULL) || (inList)) in _modAttrKVP()
2359 if (attrs != NULL) in _attrAddKVP()
2361 if (kvpList != NULL) in _attrAddKVP()
2363 while ((kvpList != NULL) && (*kvpList != NULL)) in _attrAddKVP()
2380 result = _modLDAPmodValue(attrs, ATTR_KVP, NULL); in _attrAddKVP()
2420 static char *sDN = NULL; in _manageReferralCredentials()
2421 static char *sPasswd = NULL; in _manageReferralCredentials()
2430 if ((dn != NULL) && (*dn != NULL)) in _manageReferralCredentials()
2435 if ((credp != NULL) && (*credp != NULL)) in _manageReferralCredentials()
2442 if ((ld != NULL) && in _manageReferralCredentials()
2443 (dn != NULL) && (credp != NULL) && (methodp != NULL)) in _manageReferralCredentials()
2445 if ((freeit == 0) && (sDN != NULL) && (sPasswd != NULL)) in _manageReferralCredentials()