SessionS.AuthorizeEventWithDigest protecting empty attributes reply

This commit is contained in:
DanB
2018-03-22 18:29:10 +01:00
parent cff64048a3
commit b00f4ce95f

View File

@@ -1473,7 +1473,7 @@ func (smg *SMGeneric) BiRPCv1AuthorizeEventWithDigest(clnt rpcclient.RpcClientCo
if err = smg.BiRPCv1AuthorizeEvent(clnt, args, &initAuthRply); err != nil {
return
}
if args.GetAttributes {
if args.GetAttributes && initAuthRply.Attributes != nil {
authReply.AttributesDigest = utils.StringPointer(initAuthRply.Attributes.Digest())
}
if args.AuthorizeResources {