Reaction of primary nitroalkane with nitrous acid
As the comments say, it's both.  The two products can tautomerize in the same way as a ketone and it's tautomeric enol.  In fact, this is basically a keto-enol tautomerization, disguised by occurring around a nitrogen atom instead of carbon.