D. Both sides agreed to return things to the way they were before the war.
The Treaty of Ghent essentially restored the status quo ante bellum, meaning that it returned relations and territorial control to the way they were prior to the War of 1812, with no significant territorial changes.