mirror of
				https://github.com/clearml/dropbear
				synced 2025-06-26 18:17:32 +00:00 
			
		
		
		
	Only send a failure response to a channel request if wantreply is set.
This commit is contained in:
		
							parent
							
								
									dffb33cecf
								
							
						
					
					
						commit
						69a165db86
					
				| @ -71,7 +71,9 @@ static void cli_chansessreq(struct Channel *channel) { | ||||
| 		TRACE(("got exit-signal, ignoring it")) | ||||
| 	} else { | ||||
| 		TRACE(("unknown request '%s'", type)) | ||||
| 		send_msg_channel_failure(channel); | ||||
| 		if (wantreply) { | ||||
| 			send_msg_channel_failure(channel); | ||||
| 		} | ||||
| 		goto out; | ||||
| 	} | ||||
| 		 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user