Changes in uspace/srv/net/dnsrsrv/dnsrsrv.c [959d2ec:5d1cb8a] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/dnsrsrv/dnsrsrv.c
r959d2ec r5d1cb8a 89 89 char *name; 90 90 dns_host_info_t *hinfo; 91 ipc_callid_t rcallid;92 size_t size;93 sysarg_t retval;94 size_t act_size;95 91 int rc; 96 92 … … 104 100 } 105 101 106 if (!async_data_read_receive(&rcallid, &size)) {107 async_answer_0(rcallid, EREFUSED);108 async_answer_0(callid, EREFUSED);109 return;110 }111 112 102 rc = dns_name2host(name, &hinfo); 113 103 if (rc != EOK) { 114 async_answer_0(rcallid, rc);115 104 async_answer_0(callid, rc); 116 105 return; 117 106 } 118 107 119 act_size = str_size(hinfo->cname); 120 if (act_size > size) { 121 async_answer_0(rcallid, EOVERFLOW); 122 async_answer_0(callid, EOVERFLOW); 123 return; 124 } 125 126 retval = async_data_read_finalize(rcallid, hinfo->cname, act_size); 127 async_answer_1(callid, retval, hinfo->addr.ipv4); 108 async_answer_1(callid, EOK, hinfo->addr.ipv4); 128 109 129 110 dns_hostinfo_destroy(hinfo);
Note:
See TracChangeset
for help on using the changeset viewer.