|
@@ -165,7 +165,8 @@ skip_rewrite_uri:
|
|
LOG(L_ERR, "ERROR: lookup(): branch: out of memory\n");
|
|
LOG(L_ERR, "ERROR: lookup(): branch: out of memory\n");
|
|
goto cont; /* try to continue */
|
|
goto cont; /* try to continue */
|
|
}
|
|
}
|
|
- if (append_branch(_m, &new_uri, 0, 0, ptr->q, 0, 0) == -1) {
|
|
|
|
|
|
+ if (append_branch(_m, &new_uri, 0, 0, ptr->q,
|
|
|
|
+ 0, 0, 0, 0) == -1) {
|
|
LOG(L_ERR, "lookup(): Error while appending a branch\n");
|
|
LOG(L_ERR, "lookup(): Error while appending a branch\n");
|
|
pkg_free(new_uri.s);
|
|
pkg_free(new_uri.s);
|
|
if (ser_error==E_TOO_MANY_BRANCHES) goto skip;
|
|
if (ser_error==E_TOO_MANY_BRANCHES) goto skip;
|
|
@@ -174,8 +175,10 @@ skip_rewrite_uri:
|
|
}
|
|
}
|
|
pkg_free(new_uri.s); /* append_branch doesn't free it */
|
|
pkg_free(new_uri.s); /* append_branch doesn't free it */
|
|
}else{
|
|
}else{
|
|
- if (append_branch(_m, &ptr->c, &ptr->received, 0 /* path */,
|
|
|
|
- ptr->q, 0 /* brflags*/, ptr->sock) == -1) {
|
|
|
|
|
|
+ if (append_branch(_m, &ptr->c, &ptr->received,
|
|
|
|
+ 0 /* path */,
|
|
|
|
+ ptr->q, 0 /* brflags*/,
|
|
|
|
+ ptr->sock, 0, 0) == -1) {
|
|
LOG(L_ERR, "lookup(): Error while appending a branch\n");
|
|
LOG(L_ERR, "lookup(): Error while appending a branch\n");
|
|
goto skip; /* Return OK here so the function succeeds */
|
|
goto skip; /* Return OK here so the function succeeds */
|
|
}
|
|
}
|
|
@@ -326,7 +329,8 @@ skip_rewrite_uri:
|
|
ERR("branch: out of memory\n");
|
|
ERR("branch: out of memory\n");
|
|
goto cont; /* try to continue */
|
|
goto cont; /* try to continue */
|
|
}
|
|
}
|
|
- if (append_branch(msg, &new_uri, 0, 0, ptr->q, 0, 0) == -1) {
|
|
|
|
|
|
+ if (append_branch(msg, &new_uri, 0, 0, ptr->q,
|
|
|
|
+ 0, 0, 0, 0) == -1) {
|
|
ERR("Error while appending a branch\n");
|
|
ERR("Error while appending a branch\n");
|
|
pkg_free(new_uri.s);
|
|
pkg_free(new_uri.s);
|
|
if (ser_error == E_TOO_MANY_BRANCHES) goto skip;
|
|
if (ser_error == E_TOO_MANY_BRANCHES) goto skip;
|
|
@@ -335,8 +339,10 @@ skip_rewrite_uri:
|
|
}
|
|
}
|
|
pkg_free(new_uri.s); /* append_branch doesn't free it */
|
|
pkg_free(new_uri.s); /* append_branch doesn't free it */
|
|
} else {
|
|
} else {
|
|
- if (append_branch(msg, &ptr->c, &ptr->received, 0 /* path */,
|
|
|
|
- ptr->q, 0, ptr->sock) == -1) {
|
|
|
|
|
|
+ if (append_branch(msg, &ptr->c, &ptr->received,
|
|
|
|
+ 0 /* path */,
|
|
|
|
+ ptr->q, 0, ptr->sock,
|
|
|
|
+ 0, 0) == -1) {
|
|
ERR("Error while appending a branch\n");
|
|
ERR("Error while appending a branch\n");
|
|
goto skip; /* Return OK here so the function succeeds */
|
|
goto skip; /* Return OK here so the function succeeds */
|
|
}
|
|
}
|