From: Andreas Steffen Date: Fri, 18 Nov 2011 01:07:22 +0000 (+0100) Subject: fixed output of qualifier flags X-Git-Tag: 4.6.2~194 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17f69fbcb5f1580caaf7a3abcf028022fe03f259;p=thirdparty%2Fstrongswan.git fixed output of qualifier flags --- diff --git a/src/libpts/pts/components/pts_component_manager.c b/src/libpts/pts/components/pts_component_manager.c index cfcccc0b51..d70884163d 100644 --- a/src/libpts/pts/components/pts_component_manager.c +++ b/src/libpts/pts/components/pts_component_manager.c @@ -238,10 +238,11 @@ METHOD(pts_component_manager_t, get_qualifier, u_int8_t, { for (i = 0 ; i < size; i++) { - flags[size-i+1] = (qualifier & flag) ? + flags[size-i-1] = (qualifier & flag) ? entry->qualifier_flag_names[i] : '.'; flag <<= 1; } + flags[size] = '\0'; } } }