Lines Matching full:server_req
965 struct server_request *server_req = NULL;
978 server_req = malloc(sizeof(struct server_request));
979 if (server_req == NULL) return -1;
980 memset(server_req, 0, sizeof(struct server_request));
982 server_req->trans_id = trans_id;
983 memcpy(&server_req->addr, addr, addrlen);
984 server_req->addrlen = addrlen;
986 server_req->base.flags = flags;
987 server_req->base.nquestions = 0;
988 server_req->base.questions = malloc(sizeof(struct evdns_server_question *) * questions);
989 if (server_req->base.questions == NULL)
1007 server_req->base.questions[server_req->base.nquestions++] = q;
1012 server_req->port = port;
1017 evdns_server_request_respond(&(server_req->base), DNS_ERR_NOTIMPL);
1021 port->user_callback(&(server_req->base), port->user_data);
1025 if (server_req) {
1026 if (server_req->base.questions) {
1027 for (i = 0; i < server_req->base.nquestions; ++i)
1028 free(server_req->base.questions[i]);
1029 free(server_req->base.questions);
1031 free(server_req);