diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2023-01-30 10:09:04 -0500 | 
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2023-01-31 15:15:42 -0500 | 
| commit | d0038397b7c3d20a3c14c9fab5c8d012d145faae (patch) | |
| tree | 29b094d9c1dd1f6653f06635c6a26e338e7c4e4c /nhrpd/vici.c | |
| parent | a348c9456f88d45b35d7e293208a6cc348cf5ad6 (diff) | |
nhrpd: Add missing enum's to switch statement
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'nhrpd/vici.c')
| -rw-r--r-- | nhrpd/vici.c | 20 | 
1 files changed, 13 insertions, 7 deletions
diff --git a/nhrpd/vici.c b/nhrpd/vici.c index 6ba2399e05..a54b43908b 100644 --- a/nhrpd/vici.c +++ b/nhrpd/vici.c @@ -135,11 +135,6 @@ static void vici_parse_message(struct vici_conn *vici, struct zbuf *msg,  		case VICI_LIST_END:  			debugf(NHRP_DEBUG_VICI, "VICI: List end");  			break; -		default: -			debugf(NHRP_DEBUG_VICI, -			       "VICI: Unsupported message component type %d", -			       *type); -			return;  		}  	}  } @@ -207,7 +202,12 @@ static void parse_sa_message(struct vici_message_ctx *ctx,  			}  		}  		break; -	default: +	case VICI_START: +	case VICI_KEY_VALUE: +	case VICI_LIST_START: +	case VICI_LIST_ITEM: +	case VICI_LIST_END: +	case VICI_END:  		if (!key || !key->ptr)  			break; @@ -286,7 +286,13 @@ static void parse_cmd_response(struct vici_message_ctx *ctx,  		    && blob2buf(val, buf, sizeof(buf)))  			flog_err(EC_NHRP_SWAN, "VICI: strongSwan: %s", buf);  		break; -	default: +	case VICI_START: +	case VICI_SECTION_START: +	case VICI_SECTION_END: +	case VICI_LIST_START: +	case VICI_LIST_ITEM: +	case VICI_LIST_END: +	case VICI_END:  		break;  	}  }  | 
