Skip to content

Commit b464093

Browse files
author
bwelling
committed
The 'zone' keyword should set the origin, if the origin is not set.
git-svn-id: http://svn.code.sf.net/p/dnsjava/code/trunk@702 c76caeb1-94fd-44dd-870f-0c9d92034fc1
1 parent 8774fb5 commit b464093

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

update.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,12 @@ else if (operation.equals("origin"))
127127
origin = Name.fromString(st.nextToken(),
128128
Name.root);
129129

130-
else if (operation.equals("zone"))
130+
else if (operation.equals("zone")) {
131131
zone = Name.fromString(st.nextToken(),
132132
Name.root);
133+
if (origin == null)
134+
origin = zone;
135+
}
133136

134137
else if (operation.equals("require"))
135138
doRequire(st);

0 commit comments

Comments
 (0)