Skip to content

Commit fbe3223

Browse files
committed
session_rpcserver: nil check on MacaroonRecipe
1 parent cfc0de1 commit fbe3223

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

session_rpcserver.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,9 @@ func (s *sessionRpcServer) resumeSession(sess *session.Session) error {
323323
// For custom session types, we use the caveats and permissions that
324324
// were persisted on session creation.
325325
case session.TypeMacaroonCustom:
326-
permissions = sess.MacaroonRecipe.Permissions
326+
if sess.MacaroonRecipe != nil {
327+
permissions = sess.MacaroonRecipe.Permissions
328+
}
327329

328330
// No other types are currently supported.
329331
default:

0 commit comments

Comments
 (0)