Explorar o código

- check command type only if cmd returned anything, reported by
Tomas Mandys

Jan Janak %!s(int64=19) %!d(string=hai) anos
pai
achega
9c1c9fa88d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      cfg.y

+ 1 - 1
cfg.y

@@ -1258,7 +1258,7 @@ host:
 fcmd:
 	cmd {
 		/* check if allowed */
-		if (rt==ONSEND_ROUTE) {
+		if ($1 && rt==ONSEND_ROUTE) {
 			switch($1->type) {
 				case DROP_T:
 				case SEND_T: