From: Jeffrey Altman Date: Wed, 15 Jul 2009 15:26:12 +0000 (-0400) Subject: vos print_addr() must call ubik_VL_GetAddrsU with correct level of indirection X-Git-Tag: openafs-devel-1_5_61~102 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=86b0f09bddeded9515f39ad17b47a0b4e23a968b;p=packages%2Fo%2Fopenafs.git vos print_addr() must call ubik_VL_GetAddrsU with correct level of indirection Reported by Marcus Watts. print_addr() accepts a afsUUID* and must not pass the address of that variable to ubik_VL_GetAddrsU. LICENSE IPL10 Reviewed-on: http://gerrit.openafs.org/101 Verified-by: Russ Allbery Reviewed-by: Russ Allbery --- diff --git a/src/volser/vos.c b/src/volser/vos.c index 2078e1989..df766d411 100644 --- a/src/volser/vos.c +++ b/src/volser/vos.c @@ -5161,7 +5161,7 @@ print_addrs(const bulkaddrs * addrs, const afsUUID * m_uuid, int nentries, m_addrs.bulkaddrs_val = 0; m_addrs.bulkaddrs_len = 0; vcode = - ubik_VL_GetAddrsU(cstruct, 0, &m_attrs, &m_uuid, + ubik_VL_GetAddrsU(cstruct, 0, &m_attrs, m_uuid, (afs_int32 *)&vlcb, &m_nentries, &m_addrs); if (vcode) { fprintf(STDERR,