Skip to content

Conversation

@vetinari
Copy link
Contributor

functions which were using ber.DecodePacket() now return an error also.

fixes #77

}

func addControlDescriptions(packet *ber.Packet) {
func addControlDescriptions(packet *ber.Packet) error {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aren't descriptions advisory/optional? I'm trying to decide is failing to add them should be a fatal error

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Failing means the packet is not in a valid format. This is just called (directly or indirectly) from addLDAPDescriptions which returns an error on broken packets (e.g. not enough children in a sequence).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

dn.go Outdated
@@ -1,3 +1,7 @@
// Copyright 2015 The Go Authors. All rights reserved.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure where this copyright header came from

@liggitt
Copy link
Contributor

liggitt commented May 30, 2018

remove copyright header and squash, then lgtm

functions which were using ber.DecodePacket() now return an error also.

fixes go-ldap#77
@vetinari vetinari merged commit 529aec6 into go-ldap:master May 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

start using error returning BER API calls

2 participants