mirror of
				https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
				synced 2025-10-31 12:03:50 +00:00 
			
		
		
		
	gprs: Move log message about mm context after NULL check
Fixes: CID#1240205
This commit is contained in:
		
				
					committed by
					
						 Holger Hans Peter Freyther
						Holger Hans Peter Freyther
					
				
			
			
				
	
			
			
			
						parent
						
							465531403c
						
					
				
				
					commit
					f8070f4793
				
			| @@ -582,14 +582,14 @@ static int gsm48_rx_gmm_id_resp(struct sgsn_mm_ctx *ctx, struct msgb *msg) | |||||||
| 	char mi_string[GSM48_MI_SIZE]; | 	char mi_string[GSM48_MI_SIZE]; | ||||||
|  |  | ||||||
| 	gsm48_mi_to_string(mi_string, sizeof(mi_string), &gh->data[1], gh->data[0]); | 	gsm48_mi_to_string(mi_string, sizeof(mi_string), &gh->data[1], gh->data[0]); | ||||||
| 	LOGMMCTXP(LOGL_DEBUG, ctx, "-> GMM IDENTITY RESPONSE: mi_type=0x%02x MI(%s)\n", |  | ||||||
| 		mi_type, mi_string); |  | ||||||
|  |  | ||||||
| 	if (!ctx) { | 	if (!ctx) { | ||||||
| 		DEBUGP(DMM, "from unknown TLLI 0x%08x?!? This should not happen\n", msgb_tlli(msg)); | 		DEBUGP(DMM, "from unknown TLLI 0x%08x?!? This should not happen\n", msgb_tlli(msg)); | ||||||
| 		return -EINVAL; | 		return -EINVAL; | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
|  | 	LOGMMCTXP(LOGL_DEBUG, ctx, "-> GMM IDENTITY RESPONSE: mi_type=0x%02x MI(%s)\n", | ||||||
|  | 		mi_type, mi_string); | ||||||
|  |  | ||||||
| 	if (mi_type == ctx->t3370_id_type) | 	if (mi_type == ctx->t3370_id_type) | ||||||
| 		mmctx_timer_stop(ctx, 3370); | 		mmctx_timer_stop(ctx, 3370); | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user