Lines Matching refs:ncb
1072 struct netconfig *nca, *ncb; local
1083 ncb = (b->ypbind_nconf =
1089 ncb->nc_flag = nca->nc_flag;
1090 ncb->nc_protofmly =
1092 ncb->nc_proto =
1094 ncb->nc_semantics = nca->nc_semantics;
1095 ncb->nc_netid =
1097 ncb->nc_device =
1099 ncb->nc_nlookups = nca->nc_nlookups;
1100 ncb->nc_lookups = (char **)calloc(nca->nc_nlookups, sizeof (char *));
1101 if (ncb->nc_lookups == NULL) {
1102 if (ncb->nc_device)
1103 free(ncb->nc_device);
1104 if (ncb->nc_netid)
1105 free(ncb->nc_netid);
1106 if (ncb->nc_proto)
1107 free(ncb->nc_proto);
1108 if (ncb->nc_protofmly)
1109 free(ncb->nc_protofmly);
1112 if (ncb)
1113 free(ncb);
1121 ncb->nc_lookups[i] =
1124 ncb->nc_unused[i] = nca->nc_unused[i];
1130 if (ncb->nc_lookups[i])
1131 free(ncb->nc_lookups[i]);
1132 free(ncb->nc_lookups);
1133 if (ncb->nc_device)
1134 free(ncb->nc_device);
1135 if (ncb->nc_netid)
1136 free(ncb->nc_netid);
1137 if (ncb->nc_proto)
1138 free(ncb->nc_proto);
1139 if (ncb->nc_protofmly)
1140 free(ncb->nc_protofmly);
1143 if (ncb)
1144 free(ncb);