1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

s3:cclean avoid segfault in case of ctdb missbehaviour

Signed-off-by: Michael Adam <obnox@samba.org>

Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Fri Jun 29 17:06:05 CEST 2012 on sn-devel-104
This commit is contained in:
Gregor Beck 2012-06-29 11:42:34 +02:00 committed by Michael Adam
parent fef41956b9
commit ec737d9604

View File

@ -53,9 +53,14 @@ static void print_record(const char *msg,
const struct connections_data *d)
{
char *idstr = serverid_str(k->pid);
d_printf("%s: connection %d (%s) to \"%s\" from %u:%u@%s[%s] %s\n", msg,
k->cnum, idstr, d->servicename, (unsigned)d->uid,
(unsigned)d->gid, d->machine, d->addr, time_to_asc(d->start));
d_printf("%s: connection %d (%s) ", msg, k->cnum, idstr);
if (d == NULL) {
d_printf("<no data>\n");
} else {
d_printf("to \"%s\" from %u:%u@%s[%s] %s\n", d->servicename,
(unsigned)d->uid, (unsigned)d->gid, d->machine,
d->addr, time_to_asc(d->start));
}
talloc_free(idstr);
}