~ubuntu-branches/ubuntu/raring/heimdal/raring

« back to all changes in this revision

Viewing changes to lib/krb5/krbhst.c

  • Committer: Bazaar Package Importer
  • Author(s): Jelmer Vernooij
  • Date: 2011-07-21 17:40:58 UTC
  • mfrom: (1.1.12 upstream) (2.4.10 experimental)
  • Revision ID: james.westby@ubuntu.com-20110721174058-byiuowgocek307cs
Tags: 1.5~pre2+git20110720-2
Fix dependency on pthreads when building on Linux 3.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
123
123
            (*res)[num_srv++] = hi;
124
124
 
125
125
            hi->proto = proto_num;
126
 
        
 
126
 
127
127
            hi->def_port = def_port;
128
128
            if (port != 0)
129
129
                hi->port = port;
134
134
        }
135
135
 
136
136
    *count = num_srv;
137
 
        
 
137
 
138
138
    rk_dns_free_data(r);
139
139
    return 0;
140
140
}
508
508
        ret = asprintf(&host, "%s.%s.", serv_string, kd->realm);
509
509
    else
510
510
        ret = asprintf(&host, "%s-%d.%s.",
511
 
                       serv_string, kd->fallback_count, kd->realm);     
 
511
                       serv_string, kd->fallback_count, kd->realm);
512
512
 
513
513
    if (ret < 0 || host == NULL)
514
514
        return ENOMEM;
605
605
        service = _krb5_plugin_get_symbol(e);
606
606
        if (service->minor_version != 0)
607
607
            continue;
608
 
        
 
608
 
609
609
        (*service->init)(context, &ctx);
610
610
        ret = (*service->lookup)(ctx, type, kd->realm, 0, 0, add_locate, kd);
611
611
        (*service->fini)(ctx);