Skip to content

Commit 2b7a140

Browse files
committed
replace error that had been removed
1 parent 0e9ae86 commit 2b7a140

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

protocol/dhcp/dhcp.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ func (d *DHCP) Read(b []byte) (n int, err error) {
173173

174174
func (d *DHCP) Write(b []byte) (n int, err error) {
175175
if len(b) < 240 {
176-
return 0, ErrTruncated
176+
return 0, errors.New("incomplete packet")
177177
}
178178
buf := bytes.NewBuffer(b)
179179

0 commit comments

Comments
 (0)