Lines Matching defs:new_p
2163 krb5_principal new_p = NULL;
2167 (new_p = (krb5_principal) calloc(1, sizeof(krb5_principal_data)))
2169 new_p->length = 2;
2170 new_p->data = p_data;
2174 krb5_princ_set_realm_length(context, new_p, rlen);
2175 krb5_princ_set_realm_data(context, new_p, new_r);
2177 if ((new_p->data[0].data = calloc(1, slen + 1)) == NULL) goto err;
2178 memcpy(new_p->data[0].data, svc, slen);
2179 new_p->data[0].length = slen;
2181 if ((new_p->data[1].data = calloc(1, hlen + 1)) == NULL) goto err;
2182 memcpy(new_p->data[1].data, host, hlen);
2183 new_p->data[1].length = hlen;
2185 krb5_princ_type(context, new_p) = KRB5_NT_UNKNOWN;
2186 *princ = new_p;
2190 if (new_p && new_p[0].data) free(new_p[0].data);
2191 if (new_p && new_p[1].data) free(new_p[1].data);
2192 if (new_p) free(new_p);