[sr-dev] git:master: maxfwd(k): return -2 (false) if MF header cannot be processed

Daniel-Constantin Mierla miconda at gmail.com
Tue Apr 17 22:41:55 CEST 2012


Module: sip-router
Branch: master
Commit: a15428e688049e7ef49174a2e24cbf49eb7a7cad
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=a15428e688049e7ef49174a2e24cbf49eb7a7cad

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Tue Apr 17 22:40:06 2012 +0200

maxfwd(k): return -2 (false) if MF header cannot be processed

- reported by Ladislav Jurak, FS#214

---

 modules_k/maxfwd/maxfwd.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules_k/maxfwd/maxfwd.c b/modules_k/maxfwd/maxfwd.c
index 792949f..4e1735e 100644
--- a/modules_k/maxfwd/maxfwd.c
+++ b/modules_k/maxfwd/maxfwd.c
@@ -153,7 +153,7 @@ int process_maxfwd_header(struct sip_msg *msg, int limit)
 			return 2;
 		/* error */
 		case -2:
-			break;
+			goto error;
 		/* found */
 		case 0:
 			return -1;




More information about the sr-dev mailing list