From bcf565c6e73b00527e2b9c44afe5a52da3100fa5 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Tue, 8 Mar 2011 16:58:40 +0000 Subject: [PATCH] -Fix crash when a plugin provides callback data with something other than a list reference when called from another plugin git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9013 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/sbin/xcatd | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xCAT-server/sbin/xcatd b/xCAT-server/sbin/xcatd index 952b4a714..cf0b58b0d 100755 --- a/xCAT-server/sbin/xcatd +++ b/xCAT-server/sbin/xcatd @@ -1428,7 +1428,11 @@ sub build_response { my $resp = shift; foreach (keys %$resp) { my $subresp = dclone($resp->{$_}); - push (@{$Main::resps->{$_}}, @{$subresp}); + if (ref $subresp eq 'ARRAY') { + push (@{$Main::resps->{$_}}, @{$subresp}); + } else { + push (@{$Main::resps->{$_}}, $subresp); + } } }