Lines Matching defs:gnba

241 	lwres_gnbarequest_t *gnba;
254 gnba = CTXMALLOC(sizeof(lwres_gnbarequest_t));
255 if (gnba == NULL)
258 gnba->flags = lwres_buffer_getuint32(b);
260 ret = lwres_addr_parse(b, &gnba->addr);
269 *structp = gnba;
273 if (gnba != NULL)
274 lwres_gnbarequest_free(ctx, &gnba);
289 lwres_gnbaresponse_t *gnba;
296 gnba = NULL;
309 gnba = CTXMALLOC(sizeof(lwres_gnbaresponse_t));
310 if (gnba == NULL)
312 gnba->base = NULL;
313 gnba->aliases = NULL;
314 gnba->aliaslen = NULL;
316 gnba->flags = flags;
317 gnba->naliases = naliases;
320 gnba->aliases = CTXMALLOC(sizeof(char *) * naliases);
321 if (gnba->aliases == NULL) {
326 gnba->aliaslen = CTXMALLOC(sizeof(lwres_uint16_t) * naliases);
327 if (gnba->aliaslen == NULL) {
336 ret = lwres_string_parse(b, &gnba->realname, &gnba->realnamelen);
343 for (x = 0; x < gnba->naliases; x++) {
344 ret = lwres_string_parse(b, &gnba->aliases[x],
345 &gnba->aliaslen[x]);
355 *structp = gnba;
359 if (gnba != NULL) {
360 if (gnba->aliases != NULL)
361 CTXFREE(gnba->aliases, sizeof(char *) * naliases);
362 if (gnba->aliaslen != NULL)
363 CTXFREE(gnba->aliaslen,
365 CTXFREE(gnba, sizeof(lwres_gnbaresponse_t));
375 lwres_gnbarequest_t *gnba;
380 gnba = *structp;
383 CTXFREE(gnba, sizeof(lwres_gnbarequest_t));
390 lwres_gnbaresponse_t *gnba;
395 gnba = *structp;
398 if (gnba->naliases > 0) {
399 CTXFREE(gnba->aliases, sizeof(char *) * gnba->naliases);
400 CTXFREE(gnba->aliaslen,
401 sizeof(lwres_uint16_t) * gnba->naliases);
403 if (gnba->base != NULL)
404 CTXFREE(gnba->base, gnba->baselen);
405 CTXFREE(gnba, sizeof(lwres_gnbaresponse_t));