struct tevent_req *subreq;
int ret;
enum ndr_err_code ndr_err;
- char *lower_case_npipe = strlower_talloc(mem_ctx, npipe);
-
- if (!lower_case_npipe) {
- return NULL;
- }
+ char *lower_case_npipe;
req = tevent_req_create(mem_ctx, &state,
struct tstream_npa_connect_state);
state->caller.ev = ev;
+ lower_case_npipe = strlower_talloc(state, npipe);
+ if (tevent_req_nomem(lower_case_npipe, req)) {
+ goto post;
+ }
+
state->unix_path = talloc_asprintf(state, "%s/%s",
directory,
lower_case_npipe);