klist: Fix warnings
This commit is contained in:
@@ -261,12 +261,9 @@ start_server(krb5_context contextp, const char *port_str)
|
|||||||
for(ap = ai; ap; ap = ap->ai_next)
|
for(ap = ai; ap; ap = ap->ai_next)
|
||||||
i++;
|
i++;
|
||||||
tmp = realloc(socks, (num_socks + i) * sizeof(*socks));
|
tmp = realloc(socks, (num_socks + i) * sizeof(*socks));
|
||||||
if(tmp == NULL) {
|
if(tmp == NULL)
|
||||||
krb5_warnx(contextp, "failed to reallocate %lu bytes",
|
krb5_err(contextp, 1, errno, "failed to reallocate %lu bytes",
|
||||||
(unsigned long)(num_socks + i) * sizeof(*socks));
|
(unsigned long)(num_socks + i) * sizeof(*socks));
|
||||||
freeaddrinfo(ai);
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
socks = tmp;
|
socks = tmp;
|
||||||
for(ap = ai; ap; ap = ap->ai_next) {
|
for(ap = ai; ap; ap = ap->ai_next) {
|
||||||
krb5_socket_t s = socket(ap->ai_family, ap->ai_socktype, ap->ai_protocol);
|
krb5_socket_t s = socket(ap->ai_family, ap->ai_socktype, ap->ai_protocol);
|
||||||
|
@@ -362,7 +362,6 @@ print_tickets(krb5_context context,
|
|||||||
if (ret)
|
if (ret)
|
||||||
krb5_err(context, 1, ret, "krb5_cc_end_seq_get");
|
krb5_err(context, 1, ret, "krb5_cc_end_seq_get");
|
||||||
|
|
||||||
print_comma = 0;
|
|
||||||
if(!do_verbose) {
|
if(!do_verbose) {
|
||||||
rtbl_format(ct, stdout);
|
rtbl_format(ct, stdout);
|
||||||
rtbl_destroy(ct);
|
rtbl_destroy(ct);
|
||||||
|
Reference in New Issue
Block a user