瀏覽代碼

pua: added breaks to event type matching switch

(cherry picked from commit a2ae4fe607125a05debeb40c0ecf1ce05d69ff5f)
Daniel-Constantin Mierla 7 月之前
父節點
當前提交
8d482b1a4a
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/modules/pua/hash.h

+ 2 - 0
src/modules/pua/hash.h

@@ -178,9 +178,11 @@ static inline int get_event_flag(str *event)
 		case 15:
 			if(strncmp(event->s, "message-summary", 15) == 0)
 				return MSGSUM_EVENT;
+			break;
 		case 16:
 			if(strncmp(event->s, "as-feature-event", 16) == 0)
 				return DFKS_EVENT;
+			break;
 	}
 
 	LM_ERR("Unknown event string\n");