|
@@ -33,7 +33,7 @@
|
|
#include "../mem/mem.h"
|
|
#include "../mem/mem.h"
|
|
#include "../dprint.h"
|
|
#include "../dprint.h"
|
|
#include "../trim.h"
|
|
#include "../trim.h"
|
|
-
|
|
|
|
|
|
+#include "../ut.h"
|
|
|
|
|
|
/*
|
|
/*
|
|
* Parse Route and Record-Route header fields
|
|
* Parse Route and Record-Route header fields
|
|
@@ -49,8 +49,12 @@ int parse_rr(struct hdr_field* _h)
|
|
return -1;
|
|
return -1;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if (_h->parsed) {
|
|
|
|
+ /* Already parsed, return */
|
|
|
|
+ return 0;
|
|
|
|
+ }
|
|
|
|
|
|
- /* Make a temporary copy of the string */
|
|
|
|
|
|
+ /* Make a temporary copy of the string pointer */
|
|
s.s = _h->body.s;
|
|
s.s = _h->body.s;
|
|
s.len = _h->body.len;
|
|
s.len = _h->body.len;
|
|
trim_leading(&s);
|
|
trim_leading(&s);
|