From: Oliver Kurth Date: Wed, 3 Jul 2019 21:26:55 +0000 (-0700) Subject: Suppress possible NULL pointer deref in a debug message. X-Git-Tag: stable-11.0.0~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe04b4263ae90af524fe51e124e206df737e974b;p=thirdparty%2Fopen-vm-tools.git Suppress possible NULL pointer deref in a debug message. --- diff --git a/open-vm-tools/vgauth/serviceImpl/alias.c b/open-vm-tools/vgauth/serviceImpl/alias.c index 8919a1459..e719deff8 100644 --- a/open-vm-tools/vgauth/serviceImpl/alias.c +++ b/open-vm-tools/vgauth/serviceImpl/alias.c @@ -1,5 +1,5 @@ /********************************************************* - * Copyright (C) 2011-2018 VMware, Inc. All rights reserved. + * Copyright (C) 2011-2019 VMware, Inc. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published @@ -3236,6 +3236,8 @@ ServiceValidateAliases(void) next: ServiceAliasFreeAliasList(numIds, aList); if (!foundMatch) { + /* badSubj should always have a value because maList won't be empty */ + /* coverity[var_deref_op] */ Warning("%s: orphaned mapped alias: user %s subj %s cert %s\n", __FUNCTION__, maList[i].userName, (badSubj->type == SUBJECT_TYPE_NAMED ? badSubj->name : "ANY"),