Revert "Revert "oran-shell-release: release image for F""
[pti/rtp.git] / meta-starlingx / meta-stx-distro / recipes-security / gssproxy / files / Appease-gcc-7-s-fallthrough-detection.patch
1 From f62ece3a9655c6507f40e03a36e28ecbba16f744 Mon Sep 17 00:00:00 2001
2 From: Robbie Harwood <rharwood@redhat.com>
3 Date: Fri, 19 May 2017 12:18:03 -0400
4 Subject: [PATCH] Appease gcc-7's fallthrough detection
5
6 Signed-off-by: Robbie Harwood <rharwood@redhat.com>
7 Reviewed-by: Simo Sorce <simo@redhat.com>
8 Merges: #188
9 (cherry picked from commit fdb56f8a0b6a5fd6a2072a525e228596c264883e)
10 ---
11  proxy/src/gp_export.c | 3 ++-
12  1 file changed, 2 insertions(+), 1 deletion(-)
13
14 diff --git a/proxy/src/gp_export.c b/proxy/src/gp_export.c
15 index 3a927c9..f44da50 100644
16 --- a/proxy/src/gp_export.c
17 +++ b/proxy/src/gp_export.c
18 @@ -888,7 +888,8 @@ static uint32_t gp_export_creds_linux(uint32_t *min, gss_name_t name,
19          if (res != NULL) {
20              break;
21          }
22 -        /* fall through as ret == NULL is equivalent to ENOENT */
23 +        /* ret == NULL is equivalent to ENOENT */
24 +        /* fall through */
25      case ENOENT:
26      case ESRCH:
27          free(pwbuf);