Home | History | Annotate | Download | only in libevent

Lines Matching full:server_req

1210 	struct server_request *server_req = NULL;
1228 server_req = mm_malloc(sizeof(struct server_request));
1229 if (server_req == NULL) return -1;
1230 memset(server_req, 0, sizeof(struct server_request));
1232 server_req->trans_id = trans_id;
1233 memcpy(&server_req->addr, addr, addrlen);
1234 server_req->addrlen = addrlen;
1236 server_req->base.flags = flags;
1237 server_req->base.nquestions = 0;
1238 server_req->base.questions = mm_calloc(sizeof(struct evdns_server_question *), questions);
1239 if (server_req->base.questions == NULL)
1257 server_req->base.questions[server_req->base.nquestions++] = q;
1262 server_req->port = port;
1267 evdns_server_request_respond(&(server_req->base), DNS_ERR_NOTIMPL);
1271 port->user_callback(&(server_req->base), port->user_data);
1275 if (server_req) {
1276 if (server_req->base.questions) {
1277 for (i = 0; i < server_req->base.nquestions; ++i)
1278 mm_free(server_req->base.questions[i]);
1279 mm_free(server_req->base.questions);
1281 mm_free(server_req);