]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[5513] Pop PR, finish string+escape new states
authorFrancis Dupont <fdupont@isc.org>
Sat, 20 Jan 2018 23:24:04 +0000 (00:24 +0100)
committerFrancis Dupont <fdupont@isc.org>
Sat, 20 Jan 2018 23:24:04 +0000 (00:24 +0100)
src/bin/admin/kea-admin.in
src/lib/cc/tests/json_feed_unittests.cc

index 648f49fede64e0ffdb5554e836d50a0a21a3d585..7613dfafa686b46255ae349303f6ec9afec76947 100644 (file)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-# Copyright (C) 2014-2018 Internet Systems Consortium, Inc. ("ISC")
+# Copyright (C) 2014-2017 Internet Systems Consortium, Inc. ("ISC")
 #
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -448,7 +448,7 @@ mysql_dump() {
 ### Functions used for dump
 pgsql_dump() {
     # Check the lease type was given
-    if [ $dump_type -eq 0 ]; then
+    if [ $dump_type -eq o ]; then
         log_error "lease-dump: lease type ( -4 or -6 ) needs to be specified"
         usage
         exit 1
index 5f8b64ea68a460bc591812fa0da521f1d5421260..1551f9c22e425e2578786f5121bc827c1a7e8b3e 100644 (file)
@@ -181,9 +181,9 @@ TEST_F(JSONFeedTest, string) {
 
 // This test verifies that a string with escapes is correctly handled
 TEST_F(JSONFeedTest, escape) {
-    std::string json = "{ \"escapes\": \"\\n\\t\\\"\\\" }";
+    std::string json = "{ \"escapes\": \"\\n\\t\\\"\\\\\" }";
     ElementPtr expected = Element::createMap();
-    expected->set("escapes", Element::create("\\n\\t\\\"\\"));
+    expected->set("escapes", Element::create("\n\t\"\\"));
     testRead(json, expected);
 }