Validity time not checked properly
name publishing was failing of bad format.
Simon Kirkby committed
Dec 4, 2014 at 20:39 UTC
284f4a2c475b585804daee27b4daf20af23b08f4
1 file changed
+1
-1
namesys/publisher.go
+1
-1
@@ -119,7 +119,7 @@ func ValidateIpnsRecord(k u.Key, val []byte) error {
119
}
120
switch entry.GetValidityType() {
121
case pb.IpnsEntry_EOL:
122
- t, err := u.ParseRFC3339(string(entry.GetValue()))
122
+ t, err := u.ParseRFC3339(string(entry.GetValidity()))
123
if err != nil {
124
log.Error("Failed parsing time for ipns record EOL")
125
return err