Changeset 5146:716400712348 in roaraudio for roard/req.c
- Timestamp:
- 10/15/11 12:48:07 (13 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/req.c
r5065 r5146 141 141 client, roar_autht2str(authmes.type), authmes.type, (long long unsigned int)authmes.len); 142 142 143 ROAR_DBG("req_on_auth(client=%i,...): CALL auth_client_ckeck(cs=%p, &authmes=%p, &next=%p)", client, cs, &authmes, &next); 143 144 ret = auth_client_ckeck(cs, &authmes, &next); 145 ROAR_DBG("req_on_auth(client=%i,...): RET %i // next=%s(%i)", client, ret, roar_autht2str(next), next); 144 146 145 147 if ( ret != 1 ) { 148 ROAR_DBG("req_on_auth(client=%i,...) = ?", client); 149 146 150 if ( next != -1 ) { 151 ROAR_DBG("req_on_auth(client=%i,...) = ?", client); 147 152 memset(&authmes, 0, sizeof(authmes)); 148 153 … … 152 157 return -1; 153 158 154 if ( roar_err_int(&error_frame) == -1 ) 155 return -1; 159 ROAR_DBG("req_on_auth(client=%i,...) = ?", client); 160 161 if ( roar_err_init(&error_frame) == -1 ) 162 return -1; 163 164 ROAR_DBG("req_on_auth(client=%i,...) = ?", client); 156 165 157 166 error_frame.ra_errno = ROAR_ERROR_PERM; … … 159 168 160 169 error_data = roar_err_buildmsg(mes, &error_frame); 170 ROAR_DBG("req_on_auth(client=%i,...): error_data=%p", client, error_data); 161 171 162 172 memcpy(error_data, error_mes.data, error_mes.datalen); … … 164 174 mes->cmd = ROAR_CMD_ERROR; 165 175 mes->pos = g_pos; 176 177 ROAR_DBG("req_on_auth(client=%i,...): mes=%p{.datalen=%i}", client, mes, (int)mes->datalen); 178 ROAR_DBG("req_on_auth(client=%i,...) = 0 // cmd=ERROR", client); 166 179 return 0; 167 180 } 168 181 182 ROAR_DBG("req_on_auth(client=%i,...) = 0", client); 169 183 return -1; 170 184 } … … 173 187 mes->pos = g_pos; 174 188 mes->datalen = 0; 189 190 ROAR_DBG("req_on_auth(client=%i,...) = 0", client); 175 191 return 0; 176 192 }
Note: See TracChangeset
for help on using the changeset viewer.