X-Git-Url: https://git.openafs.org/?p=openafs.git;a=blobdiff_plain;f=src%2Fptserver%2Fpts.c;h=bd264e2ce00c6d4a821f929b8b0971ecaf49564b;hp=2fd491257ab0ede9bd639b51894fe46472d0a439;hb=1b2802b6fbe6f1b6d8d5af08c114bdc182f11779;hpb=cc4e292174f36868008d35df63df57543f033ee4 diff --git a/src/ptserver/pts.c b/src/ptserver/pts.c index 2fd4912..bd264e2 100644 --- a/src/ptserver/pts.c +++ b/src/ptserver/pts.c @@ -539,12 +539,13 @@ GetNameOrId(struct cmd_syndesc *as, struct idlist *lids, code = pr_IdToName(&ids, &tnames); if (code) afs_com_err(whoami, code, "translating ids"); - else + else { goodCount++; - if (lnames) { - for (x = 0; x < ids.idlist_len; x++) - strcpy(lnames->namelist_val[nd + x], tnames.namelist_val[x]); - lnames->namelist_len = nd + x; + if (lnames) { + for (x = 0; x < ids.idlist_len; x++) + strcpy(lnames->namelist_val[nd + x], tnames.namelist_val[x]); + lnames->namelist_len = nd + x; + } } } /* treat things as working if any of the lookups worked */