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