]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[uri] Allow use of relative URIs when calling churi()
authorMichael Brown <mcb30@etherboot.org>
Mon, 16 Feb 2009 04:56:55 +0000 (04:56 +0000)
committerMichael Brown <mcb30@etherboot.org>
Mon, 16 Feb 2009 04:56:55 +0000 (04:56 +0000)
src/core/cwuri.c

index c7f013861603af5e1e9eb54c89c5ad73ac137a12..81fd900e7c1e3d5f873def72192cb59802b3b0ba 100644 (file)
@@ -36,6 +36,9 @@ struct uri *cwuri = NULL;
  * @v uri              New working URI, or NULL
  */
 void churi ( struct uri *uri ) {
+       struct uri *new_uri;
+
+       new_uri = resolve_uri ( cwuri, uri );
        uri_put ( cwuri );
-       cwuri = uri_get ( uri );
+       cwuri = new_uri;
 }